refactor: Add setOption(key) method
This commit is contained in:
parent
6fea3d5fc6
commit
8d74b48e8d
8 changed files with 26 additions and 22 deletions
|
@ -33,7 +33,7 @@ public class JReleaserTemplateEvalOperation extends AbstractJReleaserPlatformAwa
|
|||
* @return this operation instance
|
||||
*/
|
||||
public JReleaserTemplateEvalOperation overwrite() {
|
||||
setOption("--overwrite", EMPTY);
|
||||
setOption("--overwrite");
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -43,7 +43,7 @@ public class JReleaserTemplateEvalOperation extends AbstractJReleaserPlatformAwa
|
|||
* @return this operation instance
|
||||
*/
|
||||
public JReleaserTemplateEvalOperation announce() {
|
||||
setOption("--announce", EMPTY);
|
||||
setOption("--announce");
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ public class JReleaserTemplateEvalOperation extends AbstractJReleaserPlatformAwa
|
|||
* @return this operation instance
|
||||
*/
|
||||
public JReleaserTemplateEvalOperation assembly() {
|
||||
setOption("--assembly", EMPTY);
|
||||
setOption("--assembly");
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -63,7 +63,7 @@ public class JReleaserTemplateEvalOperation extends AbstractJReleaserPlatformAwa
|
|||
* @return this operation instance
|
||||
*/
|
||||
public JReleaserTemplateEvalOperation changelog() {
|
||||
setOption("--changelog", EMPTY);
|
||||
setOption("--changelog");
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -73,7 +73,7 @@ public class JReleaserTemplateEvalOperation extends AbstractJReleaserPlatformAwa
|
|||
* @return this operation instance
|
||||
*/
|
||||
public JReleaserTemplateEvalOperation download() {
|
||||
setOption("--download", EMPTY);
|
||||
setOption("--download");
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue