Skip to main content

Crate vgi_cli

Crate vgi_cli 

Source
Expand description

vgi: VGI tools for the people who hold a repository.

vgi repo init is the manual-mode half of the git-namespaces design (§7.3, §8): where no community bridge can act on a repository — a namespace bound in manual mode, or a personal account the community’s App is not installed on — the account holder runs the bridge’s own bootstrap plan themselves, with their own credentials. The plan, the files and the request bodies come from the adapters (vgi-forge-github, vgi-forge-forgejo), so what lands is byte-for-byte what the bridge would have written.

It stops short of git-ns/repo/adopt: that is a Trust Task signed with a VTA session, which this tool does not hold. It prints the cnm git adopt command instead.

Modules§

cli
Command-line arguments.
forgejo
Forgejo (and Gitea), with the person’s own token.
github
GitHub, through the person’s own gh login.
inputs
The plan’s inputs that vgi repo init finds for itself when they are not given: the repository, the registry, the pinned action and — for Forgejo — the release checksum and the web-flow key.
report
What vgi repo init prints for each step.
shell
DID syntax and shell quoting for the command vgi repo init prints.

Functions§

adopt_command
The command the namespace admin (or the reservation’s owner) runs next.
run
Run a parsed command line, writing the report to out.