@@ -15,7 +15,7 @@ func NewAppsCommand(cmdr *commands.DryccCmd) *cobra.Command {
1515 cmd := & cobra.Command {
1616 Use : "apps" ,
1717 Short : i18n .T ("Manage applications used to provide services" ),
18- RunE : func (cmd * cobra.Command , args []string ) error {
18+ RunE : func (_ * cobra.Command , _ []string ) error {
1919 return cmdr .AppsList (limit )
2020 },
2121 }
@@ -43,7 +43,7 @@ func appsCreate(cmdr *commands.DryccCmd) *cobra.Command {
4343 Args : cobra .MaximumNArgs (1 ),
4444 Short : i18n .T ("Create a new application" ),
4545 Long : i18n .T (`Creates a new application. If no <id> is provided, one will be generated automatically` ),
46- RunE : func (cmd * cobra.Command , args []string ) error {
46+ RunE : func (_ * cobra.Command , args []string ) error {
4747 id := ""
4848 if len (args ) > 0 {
4949 id = args [0 ]
@@ -64,7 +64,7 @@ func appsList(cmdr *commands.DryccCmd) *cobra.Command {
6464 Use : "list" ,
6565 Short : i18n .T ("List accessible applications" ),
6666 Long : i18n .T ("Lists applications visible to the current user" ),
67- RunE : func (cmd * cobra.Command , args []string ) error {
67+ RunE : func (_ * cobra.Command , _ []string ) error {
6868 return cmdr .AppsList (limit )
6969 },
7070 }
@@ -80,7 +80,7 @@ func appsInfo(cmdr *commands.DryccCmd) *cobra.Command {
8080 Use : "info" ,
8181 Short : i18n .T ("View info about an application" ),
8282 Long : i18n .T ("Prints info about the current application" ),
83- RunE : func (cmd * cobra.Command , args []string ) error {
83+ RunE : func (_ * cobra.Command , _ []string ) error {
8484 return cmdr .AppInfo (app )
8585 },
8686 }
@@ -99,7 +99,7 @@ func appsOpen(cmdr *commands.DryccCmd) *cobra.Command {
9999 Use : "open" ,
100100 Short : i18n .T ("Open the application in a browser" ),
101101 Long : i18n .T ("Opens a URL to the application in the default browser" ),
102- RunE : func (cmd * cobra.Command , args []string ) error {
102+ RunE : func (_ * cobra.Command , _ []string ) error {
103103 return cmdr .AppOpen (app )
104104 },
105105 }
@@ -124,7 +124,7 @@ func appsLogs(cmdr *commands.DryccCmd) *cobra.Command {
124124 Use : "logs" ,
125125 Short : i18n .T ("Retrieve application log events" ),
126126 Long : i18n .T ("Retrieves the most recent log events" ),
127- RunE : func (cmd * cobra.Command , args []string ) error {
127+ RunE : func (_ * cobra.Command , _ []string ) error {
128128 return cmdr .AppLogs (app , flags .lines , flags .follow , flags .timeout )
129129 },
130130 }
@@ -161,7 +161,7 @@ func appsRun(cmdr *commands.DryccCmd) *cobra.Command {
161161 ),
162162 Short : i18n .T ("Run a command in an ephemeral app container" ),
163163 Long : i18n .T ("Runs a command inside an ephemeral app container" ),
164- RunE : func (cmd * cobra.Command , args []string ) error {
164+ RunE : func (_ * cobra.Command , args []string ) error {
165165 command := strings .Join (args , " " )
166166 return cmdr .AppRun (app , command , flags .mounts , flags .timeout , flags .expires )
167167 },
@@ -188,7 +188,7 @@ func appsDestroy(cmdr *commands.DryccCmd) *cobra.Command {
188188 Use : "destroy" ,
189189 Example : "drycc apps destroy -a <app> --confirm <app>" ,
190190 Short : i18n .T ("Destroy an application" ),
191- RunE : func (cmd * cobra.Command , args []string ) error {
191+ RunE : func (_ * cobra.Command , _ []string ) error {
192192 return cmdr .AppDestroy (app , flags .confirm )
193193 },
194194 }
@@ -208,7 +208,7 @@ func appsTransfer(cmdr *commands.DryccCmd) *cobra.Command {
208208 Args : cobra .ExactArgs (1 ),
209209 Short : i18n .T ("Transfer app ownership to another user" ),
210210 Long : i18n .T ("Transfer application ownership to another user." ),
211- RunE : func (cmd * cobra.Command , args []string ) error {
211+ RunE : func (_ * cobra.Command , args []string ) error {
212212 user := args [0 ]
213213 return cmdr .AppTransfer (app , user )
214214 },
0 commit comments