@@ -24,7 +24,7 @@ var flagKonnectorAccountID string
2424var flagKonnectorsParameters string
2525
2626var webappsCmdGroup = & cobra.Command {
27- Use : "apps [ command] " ,
27+ Use : "apps < command> " ,
2828 Short : "Interact with the applications" ,
2929 Long : `
3030cozy-stack apps allows to interact with the cozy applications.
@@ -38,7 +38,7 @@ a cozy.
3838}
3939
4040var triggersCmdGroup = & cobra.Command {
41- Use : "triggers [ command] " ,
41+ Use : "triggers < command> " ,
4242 Short : "Interact with the triggers" ,
4343 Long : `
4444cozy-stack apps allows to interact with the cozy triggers.
@@ -51,7 +51,7 @@ It provides command to run a specific trigger.
5151}
5252
5353var installWebappCmd = & cobra.Command {
54- Use : "install [ slug] [sourceurl]" ,
54+ Use : "install < slug> [sourceurl]" ,
5555 Short : `Install an application with the specified slug name
5656from the given source URL.` ,
5757 Example : "$ cozy-stack apps install --domain cozy.tools:8080 drive registry://drive/stable" ,
@@ -62,7 +62,7 @@ from the given source URL.`,
6262}
6363
6464var updateWebappCmd = & cobra.Command {
65- Use : "update [ slug] [sourceurl]" ,
65+ Use : "update < slug> [sourceurl]" ,
6666 Short : "Update the application with the specified slug name." ,
6767 Aliases : []string {"upgrade" },
6868 RunE : func (cmd * cobra.Command , args []string ) error {
@@ -71,7 +71,7 @@ var updateWebappCmd = &cobra.Command{
7171}
7272
7373var uninstallWebappCmd = & cobra.Command {
74- Use : "uninstall [ slug] " ,
74+ Use : "uninstall < slug> " ,
7575 Short : "Uninstall the application with the specified slug name." ,
7676 Aliases : []string {"rm" },
7777 RunE : func (cmd * cobra.Command , args []string ) error {
@@ -88,31 +88,31 @@ var lsWebappsCmd = &cobra.Command{
8888}
8989
9090var showWebappCmd = & cobra.Command {
91- Use : "show [ slug] " ,
91+ Use : "show < slug> " ,
9292 Short : "Show the application attributes" ,
9393 RunE : func (cmd * cobra.Command , args []string ) error {
9494 return showApp (cmd , args , consts .Apps )
9595 },
9696}
9797
9898var showWebappTriggersCmd = & cobra.Command {
99- Use : "show-from-app [ slug] " ,
99+ Use : "show-from-app < slug> " ,
100100 Short : "Show the application triggers" ,
101101 RunE : func (cmd * cobra.Command , args []string ) error {
102102 return showWebAppTriggers (cmd , args , consts .Apps )
103103 },
104104}
105105
106106var showKonnectorCmd = & cobra.Command {
107- Use : "show [ slug] " ,
107+ Use : "show < slug> " ,
108108 Short : "Show the application attributes" ,
109109 RunE : func (cmd * cobra.Command , args []string ) error {
110110 return showApp (cmd , args , consts .Konnectors )
111111 },
112112}
113113
114114var konnectorsCmdGroup = & cobra.Command {
115- Use : "konnectors [ command] " ,
115+ Use : "konnectors < command> " ,
116116 Short : "Interact with the konnectors" ,
117117 Long : `
118118cozy-stack konnectors allows to interact with the cozy konnectors.
@@ -126,7 +126,7 @@ a cozy.
126126}
127127
128128var installKonnectorCmd = & cobra.Command {
129- Use : "install [ slug] [sourceurl]" ,
129+ Use : "install < slug> [sourceurl]" ,
130130 Short : `Install a konnector with the specified slug name
131131from the given source URL.` ,
132132 Example : "$ cozy-stack konnectors install --domain cozy.tools:8080 trainline registry://trainline/stable" ,
@@ -136,7 +136,7 @@ from the given source URL.`,
136136}
137137
138138var updateKonnectorCmd = & cobra.Command {
139- Use : "update [ slug] [sourceurl]" ,
139+ Use : "update < slug> [sourceurl]" ,
140140 Short : "Update the konnector with the specified slug name." ,
141141 Aliases : []string {"upgrade" },
142142 RunE : func (cmd * cobra.Command , args []string ) error {
@@ -145,7 +145,7 @@ var updateKonnectorCmd = &cobra.Command{
145145}
146146
147147var uninstallKonnectorCmd = & cobra.Command {
148- Use : "uninstall [ slug] " ,
148+ Use : "uninstall < slug> " ,
149149 Short : "Uninstall the konnector with the specified slug name." ,
150150 Aliases : []string {"rm" },
151151 RunE : func (cmd * cobra.Command , args []string ) error {
@@ -162,7 +162,7 @@ var lsKonnectorsCmd = &cobra.Command{
162162}
163163
164164var runKonnectorsCmd = & cobra.Command {
165- Use : "run [ slug] " ,
165+ Use : "run < slug> " ,
166166 Short : "Run a konnector." ,
167167 Long : "Run a konnector named with specified slug using the specified options." ,
168168 RunE : func (cmd * cobra.Command , args []string ) error {
0 commit comments