@@ -255,7 +255,7 @@ func main() {
255255 Use : "configure" ,
256256 Short : "Configure your self-hosted runner" ,
257257 Args : cobra .MaximumNArgs (0 ),
258- Run : func (cmd * cobra.Command , args []string ) {
258+ Run : func (_ * cobra.Command , _ []string ) {
259259 config .ReadFromEnvironment ()
260260 settings := & runnerconfiguration.RunnerSettings {}
261261 if ! printJITConfig {
@@ -322,7 +322,7 @@ func main() {
322322 Use : "run" ,
323323 Short : "Run your self-hosted runner" ,
324324 Args : cobra .MaximumNArgs (0 ),
325- Run : func (cmd * cobra.Command , args []string ) {
325+ Run : func (_ * cobra.Command , _ []string ) {
326326 os .Exit (run .Run ())
327327 },
328328 }
@@ -339,7 +339,7 @@ func main() {
339339 Use : "remove" ,
340340 Short : "Remove your self-hosted runner" ,
341341 Args : cobra .MaximumNArgs (0 ),
342- Run : func (cmd * cobra.Command , args []string ) {
342+ Run : func (_ * cobra.Command , _ []string ) {
343343 remove .ReadFromEnvironment ()
344344 var settings * runnerconfiguration.RunnerSettings
345345 var err error
@@ -396,7 +396,7 @@ func main() {
396396 Use : "worker" ,
397397 Short : "Run as self-hosted runner worker, can be used to create ephemeral worker without exposing other job requests" ,
398398 Args : cobra .MaximumNArgs (0 ),
399- Run : func (cmd * cobra.Command , args []string ) {
399+ Run : func (_ * cobra.Command , _ []string ) {
400400 ccontext , cancelccontext := context .WithCancel (context .Background ())
401401 go func () {
402402 execcontext , cancelExec := context .WithCancel (context .Background ())
@@ -459,7 +459,7 @@ func main() {
459459 svcRun := & cobra.Command {
460460 Use : "run" ,
461461 Short : "Used as service entrypoint" ,
462- RunE : func (cmd * cobra.Command , args []string ) error {
462+ RunE : func (_ * cobra.Command , _ []string ) error {
463463 err := os .Chdir (wd )
464464 if err != nil {
465465 return err
@@ -492,7 +492,7 @@ func main() {
492492 svcInstall := & cobra.Command {
493493 Use : "install" ,
494494 Short : "Install the service may require admin privileges" ,
495- RunE : func (cmd * cobra.Command , args []string ) error {
495+ RunE : func (_ * cobra.Command , _ []string ) error {
496496 svc , err := service .New (& RunRunnerSvc {}, getSvcConfig (wd , envFile ))
497497
498498 if err != nil {
@@ -510,7 +510,7 @@ func main() {
510510 svcUninstall := & cobra.Command {
511511 Use : "uninstall" ,
512512 Short : "Uninstall the service may require admin privileges" ,
513- RunE : func (cmd * cobra.Command , args []string ) error {
513+ RunE : func (_ * cobra.Command , _ []string ) error {
514514 svc , err := service .New (& RunRunnerSvc {}, getSvcConfig (wd , envFile ))
515515
516516 if err != nil {
@@ -522,7 +522,7 @@ func main() {
522522 svcStart := & cobra.Command {
523523 Use : "start" ,
524524 Short : "Start the service may require admin privileges" ,
525- RunE : func (cmd * cobra.Command , args []string ) error {
525+ RunE : func (_ * cobra.Command , _ []string ) error {
526526 svc , err := service .New (& RunRunnerSvc {}, getSvcConfig (wd , envFile ))
527527
528528 if err != nil {
@@ -534,7 +534,7 @@ func main() {
534534 svcStop := & cobra.Command {
535535 Use : "stop" ,
536536 Short : "Stop the service may require admin privileges" ,
537- RunE : func (cmd * cobra.Command , args []string ) error {
537+ RunE : func (_ * cobra.Command , _ []string ) error {
538538 svc , err := service .New (& RunRunnerSvc {}, getSvcConfig (wd , envFile ))
539539
540540 if err != nil {
0 commit comments