Skip to main content

Module args

Module args 

Source
Expand description

Clap CLI surface (struct Cli + subcommands).

Extracted from main.rs so xtask (and any future tool) can reuse the command tree for man-page generation, completion scripts, etc. Keep this file focused on the clap derive — all dispatch / business logic stays in main.rs and the per-command modules.

Each subcommand is a tuple variant on Command delegating to a *Args struct. The struct is the home for the rustdoc that drives clap’s about / long_about (first paragraph → about, rest → long_about) and for #[command(...)] extras such as after_help, aliases, and arg-group headings. Keep the variants themselves bare — putting a doc comment on the variant would shadow the struct’s docs.

Structs§

CheckoutArgs
Populate working copy with real content from Git LFS files.
CleanArgs
Git clean filter that converts large files to pointers
Cli
CloneArgs
Efficiently clone a LFS-enabled repository
EnvArgs
Display the Git LFS environment
ExtArgs
List the configured LFS pointer extensions
FetchArgs
Download all Git LFS files for a given ref
FilterProcessArgs
Git filter process that converts between pointer and actual content
FsckArgs
Check Git LFS files for consistency
InstallArgs
Install Git LFS configuration
LockArgs
Set a file as “locked” on the Git LFS server
LocksArgs
Lists currently locked files from the Git LFS server
LsFilesArgs
Show information about Git LFS files in the index and working tree
MigrateArgs
Migrate history to or from Git LFS
MigrateExportArgs
Convert Git LFS pointers to Git objects
MigrateImportArgs
Convert Git objects to Git LFS pointers
MigrateInfoArgs
Show information about repository size
PointerArgs
Build, compare, and check pointers
PostCheckoutArgs
Git post-checkout hook implementation
PostCommitArgs
Git post-commit hook implementation
PostMergeArgs
Git post-merge hook implementation
PrePushArgs
Git pre-push hook implementation
PruneArgs
Delete old LFS files from local storage
PullArgs
Download all Git LFS files for current ref and checkout
PushArgs
Push queued large files to the Git LFS endpoint
SmudgeArgs
Git smudge filter that converts pointer in blobs to the actual content
StatusArgs
Show the status of Git LFS files in the working tree
TrackArgs
View or add Git LFS paths to Git attributes
UninstallArgs
Remove Git LFS configuration
UnlockArgs
Remove “locked” setting for a file on the Git LFS server
UntrackArgs
Remove Git LFS paths from Git attributes
UpdateArgs
Update Git hooks
VersionArgs
Print the git-lfs version banner and exit

Enums§

Command
MigrateCmd