Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyFlagOverrides ¶
ApplyFlagOverrides parses a comma separated list of feature flag overrides (without the -- flag name prefix) and sets them in the referenced features.
Types ¶
type Features ¶
type Features struct { // Never enabled by default NoUseRegistryForWithDocker bool `long:"no-use-registry-for-with-docker" description:"disable use-registry-for-with-docker"` // escape hatch for disabling WITH DOCKER registry, e.g. used by eine-based tests EarthlyCIRunnerArg bool `long:"earthly-ci-runner-arg" description:"includes EARTHLY_CI_RUNNER ARG"` // earthly CI was discontinued, no reason to enable this by default // VERSION 0.5 ExecAfterParallel bool `long:"exec-after-parallel" description:"force execution after parallel conversion"` ParallelLoad bool `long:"parallel-load" description:"perform parallel loading of images into WITH DOCKER"` UseRegistryForWithDocker bool `long:"use-registry-for-with-docker" description:"use embedded Docker registry for WITH DOCKER load operations"` // VERSION 0.6 ForIn bool `long:"for-in" description:"allow the use of the FOR command"` NoImplicitIgnore bool `` /* 184-byte string literal not displayed */ ReferencedSaveOnly bool `long:"referenced-save-only" description:"only save artifacts that are directly referenced"` RequireForceForUnsafeSaves bool `long:"require-force-for-unsafe-saves" description:"require the --force flag when saving to path outside of current path"` UseCopyIncludePatterns bool `long:"use-copy-include-patterns" description:"specify an include pattern to buildkit when performing copies"` // VERSION 0.7 CheckDuplicateImages bool `long:"check-duplicate-images" description:"check for duplicate images during output"` EarthlyCIArg bool `long:"ci-arg" description:"include EARTHLY_CI arg"` EarthlyGitAuthorArgs bool `long:"earthly-git-author-args" description:"includes EARTHLY_GIT_AUTHOR and EARTHLY_GIT_CO_AUTHORS ARGs"` EarthlyLocallyArg bool `long:"earthly-locally-arg" description:"includes EARTHLY_LOCALLY ARG"` EarthlyVersionArg bool `long:"earthly-version-arg" description:"includes EARTHLY_VERSION and EARTHLY_BUILD_SHA ARGs"` ExplicitGlobal bool `long:"explicit-global" description:"require base target args to have explicit settings to be considered global args"` GitCommitAuthorTimestamp bool `long:"git-commit-author-timestamp" description:"include EARTHLY_GIT_COMMIT_AUTHOR_TIMESTAMP arg"` NewPlatform bool `long:"new-platform" description:"enable new platform behavior"` NoTarBuildOutput bool `long:"no-tar-build-output" description:"do not print output when creating a tarball to load into WITH DOCKER"` SaveArtifactKeepOwn bool `long:"save-artifact-keep-own" description:"always apply the --keep-own flag with SAVE ARTIFACT"` ShellOutAnywhere bool `long:"shell-out-anywhere" description:"allow shelling-out in the middle of ARGs, or any other command"` UseCacheCommand bool `long:"use-cache-command" description:"allow use of CACHE command in Earthfiles"` UseChmod bool `long:"use-chmod" description:"enable the COPY --chmod option"` UseCopyLink bool `long:"use-copy-link" description:"use the equivalent of COPY --link for all copy-like operations"` UseHostCommand bool `long:"use-host-command" description:"allow use of HOST command in Earthfiles"` UseNoManifestList bool `long:"use-no-manifest-list" description:"enable the SAVE IMAGE --no-manifest-list option"` UsePipelines bool `long:"use-pipelines" description:"enable the PIPELINE and TRIGGER commands"` UseProjectSecrets bool `long:"use-project-secrets" description:"enable project-based secret resolution"` WaitBlock bool `long:"wait-block" description:"enable WITH/END feature, also allows RUN --push mixed with non-push commands"` // VERSION 0.8 NoNetwork bool `long:"no-network" description:"allow the use of RUN --network=none commands"` ArgScopeSet bool `long:"arg-scope-and-set" description:"enable SET to reassign ARGs and prevent ARGs from being redeclared in the same scope"` UseDockerIgnore bool `` /* 153-byte string literal not displayed */ PassArgs bool `long:"pass-args" description:"Allow the use of the --pass-arg flag in FROM, BUILD, COPY, WITH DOCKER, and DO commands"` GlobalCache bool `` /* 133-byte string literal not displayed */ CachePersistOption bool `long:"cache-persist-option" description:"Adds option to persist caches, Changes default CACHE behaviour to not persist"` GitRefs bool `long:"git-refs" description:"includes EARTHLY_GIT_REFS ARG"` UseVisitedUpfrontHashCollection bool `` /* 242-byte string literal not displayed */ UseFunctionKeyword bool `long:"use-function-keyword" description:"Use the FUNCTION key word instead of COMMAND"` // unreleased TryFinally bool `long:"try" description:"allow the use of the TRY/FINALLY commands"` Major int Minor int }
Features is used to denote which features to flip on or off; this is for use in maintaining backwards compatibility
func FromContext ¶ added in v0.7.8
FromContext returns the *Features associated with the ctx. If no features is found, nil is returned.
Click to show internal directories.
Click to hide internal directories.