Something went wrong. Try again.
A collection of +180 reusable WebAssembly modules for building composable CI/CD pipelines with FluentCI fluentci.io/modules
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336-- Generated by Gleam CI helpers.module CI.Component (setup, run, version, clone, fetch, checkout, status, diff, log, show, rev_parse, describe, add, commit, tag, push, pull, submodule_update, ls_remote, archive, config_get, remote_get_url) where
import Preludeimport CI.Contract as Contractimport Data.Maybe (Maybe)import Effect (Effect)import CI.ModuleDependencies as Dependenciesimport CI.CLI as Nativeimport CI.ToolSetup as ContainerSetup
-- | Ensure git is installed and verified, reusing an available matching version, and publish its environment.-- | @param version Tool release or supported channel to install; omitted values use the documented default.-- | @param installDir Absolute per-user installation prefix; omit for native package installations.-- | @param packageName Native package or port selector overriding the default repository package name.-- | @param sudo Use noninteractive sudo for native package or system installation; defaults to false.setup :: { version :: Maybe String, installDir :: Maybe String, packageName :: Maybe String, sudo :: Maybe Boolean } -> Effect Contract.SetupResultsetup args = do ContainerSetup.setupWith (Contract.input (Contract.encodeInput args))
-- | Run any native git command with literal argv.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas.-- | @param arguments Required comma-separated git command and literal argument tokens; never JSON.run :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, arguments :: String } -> Effect Contract.ExecutionResultrun args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "git" "run" json
-- | Report the installed git CLI version.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas.version :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String } -> Effect Contract.ExecutionResultversion args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "git" "version" json
-- | Clone a repository with optional shallow, partial and submodule checkout.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas.-- | @param branch Branch or tag to check out.-- | @param depth Positive shallow clone depth.-- | @param filter Partial clone filter, for example blob:none.-- | @param recursive Clone submodules recursively.-- | @param singleBranch Fetch only one branch.-- | @param url Repository URL or local source path.-- | @param directory Destination checkout directory; native Git chooses the default when omitted.-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.clone :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, branch :: Maybe String, depth :: Maybe Int, filter :: Maybe String, recursive :: Maybe Boolean, singleBranch :: Maybe Boolean, url :: String, directory :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultclone args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "git" "clone" json
-- | Fetch selected refs and tags without merging them.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas.-- | @param prune Remove stale remote-tracking refs.-- | @param tags Fetch all tags.-- | @param depth Positive shallow fetch depth.-- | @param remote Remote name or URL. Default: "origin".-- | @param refspecs Refspecs to fetch; omit for the remote defaults.-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.fetch :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, prune :: Maybe Boolean, tags :: Maybe Boolean, depth :: Maybe Int, remote :: Maybe String, refspecs :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultfetch args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "git" "fetch" json
-- | Check out a revision while retaining native dirty-worktree safety checks.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas.-- | @param detach Check out a detached revision.-- | @param ref Revision or existing branch to check out.-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.checkout :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, detach :: Maybe Boolean, ref :: String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultcheckout args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "git" "checkout" json
-- | Inspect checkout and index state with stable machine-readable output.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas.-- | @param porcelain Stable machine-readable status format. Default: "v1". Allowed values: v1, v2.-- | @param branch Include branch information.-- | @param paths Optional pathspecs limiting status.-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.status :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, porcelain :: Maybe String, branch :: Maybe Boolean, paths :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultstatus args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "git" "status" json
-- | Compare source revisions or the working tree and optionally fail on differences.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas.-- | @param exitCode Fail when differences exist. Default: true.-- | @param cached Compare the staged index.-- | @param stat Print a diff summary.-- | @param revisions Optional revisions and path tokens in native order.-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.diff :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, exitCode :: Maybe Boolean, cached :: Maybe Boolean, stat :: Maybe Boolean, revisions :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultdiff args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "git" "diff" json
-- | Read bounded commit history for release notes or change detection.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas.-- | @param maxCount Maximum commits to print. Default: 20.-- | @param format Native Git log format. Default: "%H %s".-- | @param revision Optional revision range.-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.log :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, maxCount :: Maybe Int, format :: Maybe String, revision :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultlog args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "git" "log" json
-- | Inspect a selected commit, tree or versioned file.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas.-- | @param format Native commit formatting string.-- | @param stat Print changed-file statistics.-- | @param object Revision or object:path selector. Default: "HEAD".-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.show :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, format :: Maybe String, stat :: Maybe Boolean, object :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultshow args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "git" "show" json
-- | Resolve an exact commit or object identifier.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas.-- | @param verify Require one valid revision. Default: true.-- | @param revision Revision expression to resolve. Default: "HEAD".-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.rev_parse :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, verify :: Maybe Boolean, revision :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultrev_parse args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "git" "rev_parse" json
-- | Derive a release identifier from Git tags and commit history.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas.-- | @param tags Include lightweight tags. Default: true.-- | @param always Fall back to an abbreviated object name. Default: true.-- | @param match Tag name pattern.-- | @param revision Commit to describe. Default: "HEAD".-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.describe :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, tags :: Maybe Boolean, always :: Maybe Boolean, match :: Maybe String, revision :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultdescribe args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "git" "describe" json
-- | Stage explicitly selected paths without implicitly staging all files.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas.-- | @param paths Required pathspecs to stage; directories are allowed.-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.add :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, paths :: String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultadd args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "git" "add" json
-- | Create a commit from staged changes using the inherited Git author identity.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas.-- | @param message Literal commit message; an editor is never opened.-- | @param allowEmpty Allow a commit with no staged changes.-- | @param signoff Add a signoff trailer.-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.commit :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, message :: String, allowEmpty :: Maybe Boolean, signoff :: Maybe Boolean, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultcommit args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "git" "commit" json
-- | Create an explicitly named release tag without forcing replacement.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas.-- | @param message Annotated tag message; omit for a lightweight tag.-- | @param sign Cryptographically sign the tag using configured signing credentials.-- | @param name New tag name.-- | @param target Commit or object to tag. Default: "HEAD".-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.tag :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, message :: Maybe String, sign :: Maybe Boolean, name :: String, target :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResulttag args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "git" "tag" json
-- | Push selected refs; force updates and tag publication are opt-in.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas.-- | @param tags Push all local tags.-- | @param atomic Require atomic remote ref updates.-- | @param setUpstream Set upstream tracking for pushed branches.-- | @param forceWithLease Explicitly request guarded forced ref updates; omitted by default.-- | @param remote Remote name or URL. Default: "origin".-- | @param refspecs Optional refspecs in native order.-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.push :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, tags :: Maybe Boolean, atomic :: Maybe Boolean, setUpstream :: Maybe Boolean, forceWithLease :: Maybe Boolean, remote :: Maybe String, refspecs :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultpush args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "git" "push" json
-- | Update the checkout, requiring a fast-forward by default.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas.-- | @param ffOnly Require a fast-forward update. Default: true.-- | @param remote Remote name or URL. Default: "origin".-- | @param branch Optional branch to pull.-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.pull :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, ffOnly :: Maybe Boolean, remote :: Maybe String, branch :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultpull args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "git" "pull" json
-- | Initialize and update submodules at their committed revisions.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas.-- | @param init Initialize selected submodules. Default: true.-- | @param recursive Update nested submodules. Default: true.-- | @param depth Positive shallow submodule depth.-- | @param paths Optional submodule pathspecs.-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.submodule_update :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, init :: Maybe Boolean, recursive :: Maybe Boolean, depth :: Maybe Int, paths :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultsubmodule_update args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "git" "submodule_update" json
-- | Inspect remote refs without checking out or modifying repository contents.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas.-- | @param tags List tags only.-- | @param heads List branch heads only.-- | @param remote Remote URL or configured name. Default: "origin".-- | @param patterns Optional ref-name patterns.-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.ls_remote :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, tags :: Maybe Boolean, heads :: Maybe Boolean, remote :: Maybe String, patterns :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultls_remote args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "git" "ls_remote" json
-- | Create a source release archive from a selected Git tree.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas.-- | @param format Archive format. Default: "tar". Allowed values: tar, zip.-- | @param output Destination archive file.-- | @param prefix Prefix for paths inside the archive.-- | @param tree Tree or commit to archive. Default: "HEAD".-- | @param paths Optional paths to include.-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.archive :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, format :: Maybe String, output :: String, prefix :: Maybe String, tree :: Maybe String, paths :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultarchive args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "git" "archive" json
-- | Read one configured Git value without modifying configuration.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas.-- | @param key Git configuration key to query.-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.config_get :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, key :: String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultconfig_get args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "git" "config_get" json
-- | Read the configured repository remote URL.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Comma-separated NAME=PATH output artifacts; use CSV double quotes around entries containing commas.-- | @param remote Remote name to inspect. Default: "origin".-- | @param extraArgs Comma-separated additional literal native tokens; no shell expansion. Empty entries are rejected; CSV quotes preserve literal commas.remote_get_url :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe String, remote :: Maybe String, extraArgs :: Maybe String } -> Effect Contract.ExecutionResultremote_get_url args = do json <- Native.csvInput (Contract.input (Contract.encodeInput args)) >>= Contract.cliInput Native.executeWithSetup Dependencies.ensureFor "git" "remote_get_url" json