diff options
| author | 2023-04-28 01:36:55 +0800 | |
|---|---|---|
| committer | 2023-04-28 01:36:55 +0800 | |
| commit | fc8c5fdce62fb229202659408798a7b6c98f6e8b (patch) | |
| tree | 7554f80e50de4af6fd255afa7c21bcdd58a7af34 /cli/internal/util/run_opts.go | |
| parent | dd84b9d64fb98746a230cd24233ff50a562c39c9 (diff) | |
| download | HydroRoll-fc8c5fdce62fb229202659408798a7b6c98f6e8b.tar.gz HydroRoll-fc8c5fdce62fb229202659408798a7b6c98f6e8b.zip | |
Diffstat (limited to 'cli/internal/util/run_opts.go')
| -rw-r--r-- | cli/internal/util/run_opts.go | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/cli/internal/util/run_opts.go b/cli/internal/util/run_opts.go deleted file mode 100644 index 08676a0..0000000 --- a/cli/internal/util/run_opts.go +++ /dev/null @@ -1,53 +0,0 @@ -package util - -import "strings" - -// EnvMode specifies if we will be using strict env vars -type EnvMode string - -const ( - // Infer - infer environment variable constraints from turbo.json - Infer EnvMode = "Infer" - // Loose - environment variables are unconstrained - Loose EnvMode = "Loose" - // Strict - environment variables are limited - Strict EnvMode = "Strict" -) - -// MarshalText implements TextMarshaler for the struct. -func (s EnvMode) MarshalText() (text []byte, err error) { - return []byte(strings.ToLower(string(s))), nil -} - -// RunOpts holds the options that control the execution of a turbo run -type RunOpts struct { - // Force execution to be serially one-at-a-time - Concurrency int - // Whether to execute in parallel (defaults to false) - Parallel bool - - EnvMode EnvMode - // The filename to write a perf profile. - Profile string - // If true, continue task executions even if a task fails. - ContinueOnError bool - PassThroughArgs []string - // Restrict execution to only the listed task names. Default false - Only bool - // Dry run flags - DryRun bool - DryRunJSON bool - // Graph flags - GraphDot bool - GraphFile string - NoDaemon bool - SinglePackage bool - - // logPrefix controls whether we should print a prefix in task logs - LogPrefix string - - // Whether turbo should create a run summary - Summarize bool - - ExperimentalSpaceID string -} |
