git.dhover×232all
#!/usr/bin/env dub
/+ dub.sdl:
    name "git"
    dependency "sparkles:core-cli" path="../../../../.."
    targetPath "build"
    // Optimised, assertions live, `debug {}` blocks out — the build every nix
    // artifact uses. Neither `debug` (which compiles those blocks in) nor
    // `release` (which deletes assert *expressions*, side effects included).
    buildType "checked" {
        buildOptions "optimize" "inline" "debugInfo"
    }
+/
// ci: run --help

import 
(package) sparkles
sparkles
.
(package) sparkles.core_cli
core_cli
.
(module) sparkles.core_cli.args
args
;
import
(package) sparkles
sparkles
.
(package) sparkles.base
base
.
(module) sparkles.base.prettyprint
prettyprint
:
(alias template) git.prettyPrint = sparkles.base.prettyprint.prettyPrint(T, Hook = void)(in T value, in PrettyPrintOptions!Hook opt = PrettyPrintOptions!Hook())

Convenience overload that returns a string.

prettyPrint
;
import
(package) sparkles
sparkles
.
(package) sparkles.base
base
.
(module) sparkles.base.styled_template

Style template processing for IES (Interpolated Expression Sequences).

Provides a template syntax for applying terminal styles to IES strings:

import sparkles.base.styled_template;

int cpu = 75;
styledWriteln(i"CPU: {red $(cpu)%} Status: {green OK}");

Supported syntax:

  • {red text} — Apply single style

  • {bold.red text} — Chain multiple styles

  • {bold outer {red nested}} — Nested blocks (inner inherits outer)

  • {red text {~red normal}} — Negation with ~ removes a style

  • #{ — Escaped literal {

  • #} — Escaped literal }

styled_template
:
(alias template) git.styledWriteln = sparkles.base.styled_template.styledWriteln(Args...)(ColorDepth depth, InterpolationHeader header, Args args, InterpolationFooter footer)

Write styled IES to stdout with newline.

styledWriteln
;
int
int D main(string[] args)
main
(
(alias) object.string = string
string
[]
(parameter) string[] args
args
) =>
int sparkles.core_cli.args.internal.runCli!(git.Git)(string[] argv) @system
runCli
!
(struct) git.Git
Git
(
(parameter) string[] args
args
);
@(
(struct) sparkles.core_cli.args.uda.Command
Command
("git",
shortDescription: "Distributed version control system", helpSections: ["description", "examples", "environment", "further-reading"], )) struct
(struct) git.Git
Git
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`C`, description: "Run as if git was started in <path> instead of the current working directory"))
(alias) object.string = string
string
(field) string git.Git.directory
directory
;
mixin addSubCommand!Add; mixin addSubCommand!Branch; mixin addSubCommand!Checkout; mixin addSubCommand!Clean; mixin addSubCommand!Clone; mixin addSubCommand!Commit; mixin addSubCommand!Diff; mixin addSubCommand!Init; mixin addSubCommand!Log; mixin addSubCommand!Pull; mixin addSubCommand!Push; mixin addSubCommand!Status; @(
(struct) sparkles.core_cli.args.uda.Command
Command
("worktree",
shortDescription: "Manage multiple working trees", helpSections: ["description"], )) struct
(struct) git.Git.Worktree
Worktree
{ @(
(struct) sparkles.core_cli.args.uda.Command
Command
("add",
shortDescription: "Create a working tree", helpSections: ["description"], )) struct
(struct) git.Git.Worktree.Add
Add
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`b`))
(alias) object.string = string
string
(field) string git.Git.Worktree.Add.newBranch
newBranch
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
("detach", description: "Detach HEAD at the new working tree"))
bool
(field) bool git.Git.Worktree.Add.detach
detach
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("path"))
(alias) object.string = string
string
(field) string git.Git.Worktree.Add.path
path
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("commit-ish", optional: true))
(alias) object.string = string
string
(field) string git.Git.Worktree.Add.commitish
commitish
;
void
void git.Git.Worktree.Add.run!(sparkles.core_cli.args.internal.CommandNode!(Git))(in sparkles.core_cli.args.internal.CommandNode!(Git) program) @system
run
(Program)(in
(alias) Program = sparkles.core_cli.args.internal.CommandNode!(Git)
Program
(parameter) const(sparkles.core_cli.args.internal.CommandNode!(Git)) program
program
) =>
void sparkles.base.styled_template.styledWriteln!(core.interpolation.InterpolatedLiteral!"Running {bold git worktree add} with params:\n globals: -C='", core.interpolation.InterpolatedExpression!"program.value.directory", string, core.interpolation.InterpolatedLiteral!"'\n params: ", core.interpolation.InterpolatedExpression!"prettyPrint(this)", string)(core.interpolation.InterpolationHeader header, core.interpolation.InterpolatedLiteral!"Running {bold git worktree add} with params:\n globals: -C='" __param_1, core.interpolation.InterpolatedExpression!"program.value.directory" __param_2, string __param_3, core.interpolation.InterpolatedLiteral!"'\n params: " __param_4, core.interpolation.InterpolatedExpression!"prettyPrint(this)" __param_5, string __param_6, core.interpolation.InterpolationFooter footer) @system

ditto — defaults to ColorDepth.trueColor.

styledWriteln
(i"Running {bold git worktree add} with params:
globals: -C='$(program.value.directory)' params: $(prettyPrint(this))"); } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("list",
shortDescription: "List working tree details", helpSections: ["description"], )) struct
(struct) git.Git.Worktree.List
List
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
("porcelain", description: "Machine-readable output"))
bool
(field) bool git.Git.Worktree.List.porcelain
porcelain
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`z`, description: "Terminate records with NUL instead of newline"))
bool
(field) bool git.Git.Worktree.List.nulTerminate
nulTerminate
;
void
void git.Git.Worktree.List.run!(sparkles.core_cli.args.internal.CommandNode!(Git))(in sparkles.core_cli.args.internal.CommandNode!(Git) program) @system
run
(Program)(in
(alias) Program = sparkles.core_cli.args.internal.CommandNode!(Git)
Program
(parameter) const(sparkles.core_cli.args.internal.CommandNode!(Git)) program
program
) =>
void sparkles.base.styled_template.styledWriteln!(core.interpolation.InterpolatedLiteral!"Running {bold git worktree list} with params:\n globals: -C='", core.interpolation.InterpolatedExpression!"program.value.directory", string, core.interpolation.InterpolatedLiteral!"'\n params: ", core.interpolation.InterpolatedExpression!"prettyPrint(this)", string)(core.interpolation.InterpolationHeader header, core.interpolation.InterpolatedLiteral!"Running {bold git worktree list} with params:\n globals: -C='" __param_1, core.interpolation.InterpolatedExpression!"program.value.directory" __param_2, string __param_3, core.interpolation.InterpolatedLiteral!"'\n params: " __param_4, core.interpolation.InterpolatedExpression!"prettyPrint(this)" __param_5, string __param_6, core.interpolation.InterpolationFooter footer) @system

ditto — defaults to ColorDepth.trueColor.

styledWriteln
(i"Running {bold git worktree list} with params:
globals: -C='$(program.value.directory)' params: $(prettyPrint(this))"); } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("remove",
shortDescription: "Remove a working tree", helpSections: ["description"], )) struct
(struct) git.Git.Worktree.Remove
Remove
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`f|force`))
bool
(field) bool git.Git.Worktree.Remove.force
force
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("worktree"))
(alias) object.string = string
string
(field) string git.Git.Worktree.Remove.worktree
worktree
;
void
void git.Git.Worktree.Remove.run!(sparkles.core_cli.args.internal.CommandNode!(Git))(in sparkles.core_cli.args.internal.CommandNode!(Git) program) @system
run
(Program)(in
(alias) Program = sparkles.core_cli.args.internal.CommandNode!(Git)
Program
(parameter) const(sparkles.core_cli.args.internal.CommandNode!(Git)) program
program
) =>
void sparkles.base.styled_template.styledWriteln!(core.interpolation.InterpolatedLiteral!"Running {bold git worktree remove} with params:\n globals: -C='", core.interpolation.InterpolatedExpression!"program.value.directory", string, core.interpolation.InterpolatedLiteral!"'\n params: ", core.interpolation.InterpolatedExpression!"prettyPrint(this)", string)(core.interpolation.InterpolationHeader header, core.interpolation.InterpolatedLiteral!"Running {bold git worktree remove} with params:\n globals: -C='" __param_1, core.interpolation.InterpolatedExpression!"program.value.directory" __param_2, string __param_3, core.interpolation.InterpolatedLiteral!"'\n params: " __param_4, core.interpolation.InterpolatedExpression!"prettyPrint(this)" __param_5, string __param_6, core.interpolation.InterpolationFooter footer) @system

ditto — defaults to ColorDepth.trueColor.

styledWriteln
(i"Running {bold git worktree remove} with params:
globals: -C='$(program.value.directory)' params: $(prettyPrint(this))"); } } } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("add",
shortDescription: "Add file contents to the index", helpSections: ["description"], )) struct
(struct) git.Add
Add
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`A|all`))
bool
(field) bool git.Add.all
all
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`u|update`))
bool
(field) bool git.Add.update
update
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`p|patch`))
bool
(field) bool git.Add.patch
patch
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`n|dry-run`))
bool
(field) bool git.Add.dryRun
dryRun
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("pathspec", optional: true))
(alias) object.string = string
string
[]
(field) string[] git.Add.pathspecs
pathspecs
;
void
void git.Add.run()
run
() =>
void sparkles.base.styled_template.styledWriteln!(core.interpolation.InterpolatedLiteral!"Running {bold git add} with params:\n", core.interpolation.InterpolatedExpression!"prettyPrint(this)", string)(core.interpolation.InterpolationHeader header, core.interpolation.InterpolatedLiteral!"Running {bold git add} with params:\n" __param_1, core.interpolation.InterpolatedExpression!"prettyPrint(this)" __param_2, string __param_3, core.interpolation.InterpolationFooter footer) @system

ditto — defaults to ColorDepth.trueColor.

styledWriteln
(i"Running {bold git add} with params:\n$(prettyPrint(this))");
} @(
(struct) sparkles.core_cli.args.uda.Command
Command
("commit",
shortDescription: "Record changes to the repository", helpSections: ["description"], )) struct
(struct) git.Commit
Commit
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`m|message`))
(alias) object.string = string
string
(field) string git.Commit.message
message
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`a|all`))
bool
(field) bool git.Commit.all
all
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`v|verbose`))
bool
(field) bool git.Commit.verbose
verbose
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
("amend", description: "Amend the last commit"))
bool
(field) bool git.Commit.amend
amend
;
void
void git.Commit.run()
run
() =>
void sparkles.base.styled_template.styledWriteln!(core.interpolation.InterpolatedLiteral!"Running {bold git commit} with params:\n", core.interpolation.InterpolatedExpression!"prettyPrint(this)", string)(core.interpolation.InterpolationHeader header, core.interpolation.InterpolatedLiteral!"Running {bold git commit} with params:\n" __param_1, core.interpolation.InterpolatedExpression!"prettyPrint(this)" __param_2, string __param_3, core.interpolation.InterpolationFooter footer) @system

ditto — defaults to ColorDepth.trueColor.

styledWriteln
(i"Running {bold git commit} with params:\n$(prettyPrint(this))");
} @(
(struct) sparkles.core_cli.args.uda.Command
Command
("push",
shortDescription: "Update remote refs along with associated objects", helpSections: ["description"], )) struct
(struct) git.Push
Push
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`u|set-upstream`))
bool
(field) bool git.Push.setUpstream
setUpstream
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`f|force`))
bool
(field) bool git.Push.force
force
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
("tags", description: "Push all tags"))
bool
(field) bool git.Push.tags
tags
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("repository", optional: true))
(alias) object.string = string
string
(field) string git.Push.repository
repository
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("refspec", optional: true))
(alias) object.string = string
string
[]
(field) string[] git.Push.refspecs
refspecs
;
void
void git.Push.run()
run
() =>
void sparkles.base.styled_template.styledWriteln!(core.interpolation.InterpolatedLiteral!"Running {bold git push} with params:\n", core.interpolation.InterpolatedExpression!"prettyPrint(this)", string)(core.interpolation.InterpolationHeader header, core.interpolation.InterpolatedLiteral!"Running {bold git push} with params:\n" __param_1, core.interpolation.InterpolatedExpression!"prettyPrint(this)" __param_2, string __param_3, core.interpolation.InterpolationFooter footer) @system

ditto — defaults to ColorDepth.trueColor.

styledWriteln
(i"Running {bold git push} with params:\n$(prettyPrint(this))");
} @(
(struct) sparkles.core_cli.args.uda.Command
Command
("pull",
shortDescription: "Fetch from and integrate with another repository or a local branch", helpSections: ["description"], )) struct
(struct) git.Pull
Pull
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
("rebase", description: "Fetch from and integrate with another repository or a local branch"))
bool
(field) bool git.Pull.rebase
rebase
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("repository", optional: true))
(alias) object.string = string
string
(field) string git.Pull.repository
repository
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("refspec", optional: true))
(alias) object.string = string
string
[]
(field) string[] git.Pull.refspecs
refspecs
;
void
void git.Pull.run()
run
() =>
void sparkles.base.styled_template.styledWriteln!(core.interpolation.InterpolatedLiteral!"Running {bold git pull} with params:\n", core.interpolation.InterpolatedExpression!"prettyPrint(this)", string)(core.interpolation.InterpolationHeader header, core.interpolation.InterpolatedLiteral!"Running {bold git pull} with params:\n" __param_1, core.interpolation.InterpolatedExpression!"prettyPrint(this)" __param_2, string __param_3, core.interpolation.InterpolationFooter footer) @system

ditto — defaults to ColorDepth.trueColor.

styledWriteln
(i"Running {bold git pull} with params:\n$(prettyPrint(this))");
} @(
(struct) sparkles.core_cli.args.uda.Command
Command
("status",
shortDescription: "Show the working tree status", helpSections: ["description"], )) struct
(struct) git.Status
Status
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`s|short`))
bool
(field) bool git.Status.short_
short_
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`b|branch`))
bool
(field) bool git.Status.branch
branch
;
void
void git.Status.run()
run
() =>
void sparkles.base.styled_template.styledWriteln!(core.interpolation.InterpolatedLiteral!"Running {bold git status} with params:\n", core.interpolation.InterpolatedExpression!"prettyPrint(this)", string)(core.interpolation.InterpolationHeader header, core.interpolation.InterpolatedLiteral!"Running {bold git status} with params:\n" __param_1, core.interpolation.InterpolatedExpression!"prettyPrint(this)" __param_2, string __param_3, core.interpolation.InterpolationFooter footer) @system

ditto — defaults to ColorDepth.trueColor.

styledWriteln
(i"Running {bold git status} with params:\n$(prettyPrint(this))");
} struct
(struct) git.CommitFormatOptions
CommitFormatOptions
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
("oneline", description: "Shorten commit hash and show only the first line of the commit message"))
bool
(field) bool git.CommitFormatOptions.oneline
oneline
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
("graph", description: "Show an ASCII graph of the commit history"))
bool
(field) bool git.CommitFormatOptions.graph
graph
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`p|patch`))
bool
(field) bool git.CommitFormatOptions.patch
patch
;
} @(
(struct) sparkles.core_cli.args.uda.Command
Command
("log",
shortDescription: "Show commit logs", helpSections: ["description"], )) struct
(struct) git.Log
Log
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`n|max-count`))
int
(field) int git.Log.maxCount
maxCount
= -1;
@
(struct) sparkles.core_cli.args.uda.Flatten

UDA to flatten a nested struct of CLI options into the parent command struct.

When a struct field is annotated with @Flatten``, its fields participate in option parsing, short-option bundling, positional argument assignment, and validation as if they were declared directly on the enclosing command.

@paramgroupHeading Optional heading used to group the flattened options in --help output. If null, options appear under the main OPTIONS section.@paramprefix Optional prefix prepended to long option names (e.g., "diff-" maps layout to --diff-layout).
Flatten
("Format Options")
(struct) git.CommitFormatOptions
CommitFormatOptions
(field) git.CommitFormatOptions git.Log.format
format
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("revision-range", optional: true))
(alias) object.string = string
string
(field) string git.Log.revisionRange
revisionRange
;
void
void git.Log.run()
run
() =>
void sparkles.base.styled_template.styledWriteln!(core.interpolation.InterpolatedLiteral!"Running {bold git log} with params:\n", core.interpolation.InterpolatedExpression!"prettyPrint(this)", string)(core.interpolation.InterpolationHeader header, core.interpolation.InterpolatedLiteral!"Running {bold git log} with params:\n" __param_1, core.interpolation.InterpolatedExpression!"prettyPrint(this)" __param_2, string __param_3, core.interpolation.InterpolationFooter footer) @system

ditto — defaults to ColorDepth.trueColor.

styledWriteln
(i"Running {bold git log} with params:\n$(prettyPrint(this))");
} @(
(struct) sparkles.core_cli.args.uda.Command
Command
("branch",
shortDescription: "List, create, or delete branches", helpSections: ["description"], )) struct
(struct) git.Branch
Branch
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`a|all`))
bool
(field) bool git.Branch.all
all
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`d|delete`))
bool
(field) bool git.Branch.delete_
delete_
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`D`))
bool
(field) bool git.Branch.forceDelete
forceDelete
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`m|move`))
bool
(field) bool git.Branch.move
move
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`r|remotes`))
bool
(field) bool git.Branch.remotes
remotes
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("branchname", optional: true))
(alias) object.string = string
string
(field) string git.Branch.branchName
branchName
;
void
void git.Branch.run()
run
() =>
void sparkles.base.styled_template.styledWriteln!(core.interpolation.InterpolatedLiteral!"Running {bold git branch} with params:\n", core.interpolation.InterpolatedExpression!"prettyPrint(this)", string)(core.interpolation.InterpolationHeader header, core.interpolation.InterpolatedLiteral!"Running {bold git branch} with params:\n" __param_1, core.interpolation.InterpolatedExpression!"prettyPrint(this)" __param_2, string __param_3, core.interpolation.InterpolationFooter footer) @system

ditto — defaults to ColorDepth.trueColor.

styledWriteln
(i"Running {bold git branch} with params:\n$(prettyPrint(this))");
} @(
(struct) sparkles.core_cli.args.uda.Command
Command
("checkout",
shortDescription: "Switch branches or restore working tree files", helpSections: ["description"], )) struct
(struct) git.Checkout
Checkout
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`b`))
(alias) object.string = string
string
(field) string git.Checkout.newBranch
newBranch
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`f|force`))
bool
(field) bool git.Checkout.force
force
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("branch-or-commit", optional: true))
(alias) object.string = string
string
(field) string git.Checkout.target
target
;
void
void git.Checkout.run()
run
() =>
void sparkles.base.styled_template.styledWriteln!(core.interpolation.InterpolatedLiteral!"Running {bold git checkout} with params:\n", core.interpolation.InterpolatedExpression!"prettyPrint(this)", string)(core.interpolation.InterpolationHeader header, core.interpolation.InterpolatedLiteral!"Running {bold git checkout} with params:\n" __param_1, core.interpolation.InterpolatedExpression!"prettyPrint(this)" __param_2, string __param_3, core.interpolation.InterpolationFooter footer) @system

ditto — defaults to ColorDepth.trueColor.

styledWriteln
(i"Running {bold git checkout} with params:\n$(prettyPrint(this))");
} @(
(struct) sparkles.core_cli.args.uda.Command
Command
("diff",
shortDescription: "Show changes between commits, commit and working tree, etc", helpSections: ["description"], )) struct
(struct) git.Diff
Diff
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
("cached", description: "Show differences between index and last commit"))
bool
(field) bool git.Diff.cached
cached
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
("staged", description: "Alias for --cached"))
bool
(field) bool git.Diff.staged
staged
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("pathspec", optional: true))
(alias) object.string = string
string
[]
(field) string[] git.Diff.pathspecs
pathspecs
;
void
void git.Diff.run()
run
() =>
void sparkles.base.styled_template.styledWriteln!(core.interpolation.InterpolatedLiteral!"Running {bold git diff} with params:\n", core.interpolation.InterpolatedExpression!"prettyPrint(this)", string)(core.interpolation.InterpolationHeader header, core.interpolation.InterpolatedLiteral!"Running {bold git diff} with params:\n" __param_1, core.interpolation.InterpolatedExpression!"prettyPrint(this)" __param_2, string __param_3, core.interpolation.InterpolationFooter footer) @system

ditto — defaults to ColorDepth.trueColor.

styledWriteln
(i"Running {bold git diff} with params:\n$(prettyPrint(this))");
} @(
(struct) sparkles.core_cli.args.uda.Command
Command
("init",
shortDescription: "Create an empty Git repository or reinitialize an existing one", helpSections: ["description"], )) struct
(struct) git.Init
Init
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
("bare", description: "Create a bare repository"))
bool
(field) bool git.Init.bare
bare
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("directory", optional: true))
(alias) object.string = string
string
(field) string git.Init.directory
directory
;
void
void git.Init.run()
run
() =>
void sparkles.base.styled_template.styledWriteln!(core.interpolation.InterpolatedLiteral!"Running {bold git init} with params:\n", core.interpolation.InterpolatedExpression!"prettyPrint(this)", string)(core.interpolation.InterpolationHeader header, core.interpolation.InterpolatedLiteral!"Running {bold git init} with params:\n" __param_1, core.interpolation.InterpolatedExpression!"prettyPrint(this)" __param_2, string __param_3, core.interpolation.InterpolationFooter footer) @system

ditto — defaults to ColorDepth.trueColor.

styledWriteln
(i"Running {bold git init} with params:\n$(prettyPrint(this))");
} @(
(struct) sparkles.core_cli.args.uda.Command
Command
("clone",
shortDescription: "Clone a repository into a new directory", helpSections: ["description"], )) struct
(struct) git.Clone
Clone
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
("depth", description: "Create a shallow clone with a history truncated to the specified number of commits"))
int
(field) int git.Clone.depth
depth
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
("recursive", description: "After the clone is created, initialize all submodules within"))
bool
(field) bool git.Clone.recursive
recursive
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`b`))
(alias) object.string = string
string
(field) string git.Clone.branch
branch
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("repository"))
(alias) object.string = string
string
(field) string git.Clone.repository
repository
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("directory", optional: true))
(alias) object.string = string
string
(field) string git.Clone.directory
directory
;
void
void git.Clone.run()
run
() =>
void sparkles.base.styled_template.styledWriteln!(core.interpolation.InterpolatedLiteral!"Running {bold git clone} with params:\n", core.interpolation.InterpolatedExpression!"prettyPrint(this)", string)(core.interpolation.InterpolationHeader header, core.interpolation.InterpolatedLiteral!"Running {bold git clone} with params:\n" __param_1, core.interpolation.InterpolatedExpression!"prettyPrint(this)" __param_2, string __param_3, core.interpolation.InterpolationFooter footer) @system

ditto — defaults to ColorDepth.trueColor.

styledWriteln
(i"Running {bold git clone} with params:\n$(prettyPrint(this))");
} @(
(struct) sparkles.core_cli.args.uda.Command
Command
("clean",
shortDescription: "Remove untracked files from the working tree", helpSections: ["description", "interactive mode"], )) struct
(struct) git.Clean
Clean
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`d`))
bool
(field) bool git.Clean.deleteDirectories
deleteDirectories
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`f|force`))
bool
(field) bool git.Clean.force
force
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`i|interactive`))
bool
(field) bool git.Clean.interactive
interactive
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`n|dry-run`))
bool
(field) bool git.Clean.dryRun
dryRun
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`q|quiet`))
bool
(field) bool git.Clean.quiet
quiet
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`e|exclude`))
(alias) object.string = string
string
(field) string git.Clean.excludePattern
excludePattern
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`x`))
bool
(field) bool git.Clean.deleteUntracked
deleteUntracked
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`X`))
bool
(field) bool git.Clean.deleteIgnored
deleteIgnored
;
void
void git.Clean.run()
run
() =>
void sparkles.base.styled_template.styledWriteln!(core.interpolation.InterpolatedLiteral!"Running {bold git clean} with params:\n", core.interpolation.InterpolatedExpression!"prettyPrint(this)", string)(core.interpolation.InterpolationHeader header, core.interpolation.InterpolatedLiteral!"Running {bold git clean} with params:\n" __param_1, core.interpolation.InterpolatedExpression!"prettyPrint(this)" __param_2, string __param_3, core.interpolation.InterpolationFooter footer) @system

ditto — defaults to ColorDepth.trueColor.

styledWriteln
(i"Running {bold git clean} with params:\n$(prettyPrint(this))");
}