From fc8c5fdce62fb229202659408798a7b6c98f6e8b Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Fri, 28 Apr 2023 01:36:55 +0800 Subject: --- cli/internal/util/run_opts.go | 53 ------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 cli/internal/util/run_opts.go (limited to 'cli/internal/util/run_opts.go') 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 -} -- cgit v1.2.3-70-g09d2