mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 00:45:44 +01:00
added public option to modify-repository sub command
This commit is contained in:
@@ -139,6 +139,11 @@ public class ModifyRepositorySubCommand extends TemplateSubCommand
|
|||||||
repository.setArchived(archvied);
|
repository.setArchived(archvied);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (publicReadable != null)
|
||||||
|
{
|
||||||
|
repository.setPublicReadable(publicReadable);
|
||||||
|
}
|
||||||
|
|
||||||
handler.modify(repository);
|
handler.modify(repository);
|
||||||
|
|
||||||
Map<String, Object> env = new HashMap<String, Object>();
|
Map<String, Object> env = new HashMap<String, Object>();
|
||||||
@@ -154,9 +159,7 @@ public class ModifyRepositorySubCommand extends TemplateSubCommand
|
|||||||
|
|
||||||
//~--- fields ---------------------------------------------------------------
|
//~--- fields ---------------------------------------------------------------
|
||||||
|
|
||||||
/**
|
/** Field description */
|
||||||
* TODO: public parameter
|
|
||||||
*/
|
|
||||||
@Option(
|
@Option(
|
||||||
name = "--archived",
|
name = "--archived",
|
||||||
usage = "optionRepositoryArchive",
|
usage = "optionRepositoryArchive",
|
||||||
@@ -188,4 +191,13 @@ public class ModifyRepositorySubCommand extends TemplateSubCommand
|
|||||||
required = true
|
required = true
|
||||||
)
|
)
|
||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
|
/** Field description */
|
||||||
|
@Option(
|
||||||
|
name = "--public",
|
||||||
|
usage = "optionRepositoryPublic",
|
||||||
|
aliases = { "-p" },
|
||||||
|
handler = BooleanModifyOptionHandler.class
|
||||||
|
)
|
||||||
|
private Boolean publicReadable;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user