@CliCommand(value = REGISTER_APPLICATION, help = "Register a new application") public String register( @CliOption(mandatory = true, key = { "", "name" }, help = "the name for the registered application") String name, @CliOption(mandatory = true, key = { "type" }, help = "the type for the registered application") ApplicationType type, @CliOption(mandatory = true, key = { "uri" }, help = "URI for the application artifact") String uri, @CliOption(key = { "metadata-uri" }, help = "Metadata URI for the application artifact") String metadataUri, @CliOption(key = "force", help = "force update if application is already registered (only if not in use)", specifiedDefaultValue = "true", unspecifiedDefaultValue = "false") boolean force) { appRegistryOperations().register(name, type, uri, metadataUri, force); return String.format(("Successfully registered application '%s:%s'"), type, name); }
@CliCommand(value = REGISTER_APPLICATION, help = "Register a new application") public String register( @CliOption(mandatory = true, key = { "", "name" }, help = "the name for the registered application") String name, @CliOption(mandatory = true, key = { "type" }, help = "the type for the registered application") ApplicationType type, @CliOption(mandatory = true, key = { "uri" }, help = "URI for the application artifact") String uri, @CliOption(key = { "metadata-uri" }, help = "Metadata URI for the application artifact") String metadataUri, @CliOption(key = "force", help = "force update if application is already registered (only if not in use)", specifiedDefaultValue = "true", unspecifiedDefaultValue = "false") boolean force) { appRegistryOperations().register(name, type, uri, metadataUri, force); return String.format(("Successfully registered application '%s:%s'"), type, name); }