Skip to content

Commit

Permalink
Add which command to print the batch system
Browse files Browse the repository at this point in the history
  • Loading branch information
unkaktus committed Jun 3, 2024
1 parent bfcd473 commit f86e0d8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/robin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,14 @@ func run() (err error) {
return nil
},
},
{
Name: "which",
Usage: "print the detected batch system types",
Action: func(cCtx *cli.Context) error {
fmt.Println(batchsystem.DetectBatchSystem())
return nil
},
},
},
}
return app.Run(os.Args)
Expand Down

0 comments on commit f86e0d8

Please sign in to comment.