mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-08 16:20:29 +00:00
Add exec subcommand for runner so that we can run the tasks locally(#39)
Most codes are copied from https://gitea.com/gitea/act/src/branch/main/cmd and do some small changes to make it run again examples: ```SHELL ./act_runner exec -l ./act_runner exec -j lint ./act_runner exec -j lint -n ``` some example result:   Signed-off-by: a1012112796 <[email protected]> fix #32 Reviewed-on: https://gitea.com/gitea/act_runner/pulls/39 Reviewed-by: Lunny Xiao <[email protected]> Reviewed-by: Jason Song <[email protected]> Co-authored-by: a1012112796 <[email protected]> Co-committed-by: a1012112796 <[email protected]>
This commit is contained in:
1 parent
f24e0721dc
commit
14334f76ed
2 files changed
+451
-1
No files matched your search
+3
-1
@@ -54,9 +54,11 @@ func Execute(ctx context.Context) {
|
||||
Args: cobra.MaximumNArgs(1),
|
||||
RunE: runDaemon(ctx, gArgs.EnvFile),
|
||||
}
|
||||
// add all command
|
||||
rootCmd.AddCommand(daemonCmd)
|
||||
|
||||
// ./act_runner exec
|
||||
rootCmd.AddCommand(loadExecCmd(ctx))
|
||||
|
||||
// hide completion command
|
||||
rootCmd.CompletionOptions.HiddenDefaultCmd = true
|
||||
|
||||
|
||||
Reference in new issue
Block a user