| 633 | } |
| 634 | |
| 635 | function repoHelp(): string { |
| 636 | return `usage: artifacts repo <subcommand> [<args>] |
| 637 | |
| 638 | All names are session-scoped; pass local names only. |
| 639 | |
| 640 | repo create <name> [--description <text>] [--default-branch <branch>] [--read-only] |
| 641 | Create a repository. Prints JSON: { name, remote, defaultBranch, token }. |
| 642 | The token is an initial git token — treat it as a secret. |
| 643 | |
| 644 | repo get <name> |
| 645 | Print JSON metadata for a repository: ArtifactsRepoInfo with a local name. |
| 646 | |
| 647 | repo list |
| 648 | Print a JSON array of this session's repository metadata (without remote). |
| 649 | |
| 650 | repo delete <name> |
| 651 | Delete a repository. Prints a one-line confirmation. |
| 652 | |
| 653 | repo import <name> --url <https-url> [--branch <branch>] [--depth <n>] [--read-only] [--description <text>] |
| 654 | Import an external git remote into a new repository. |
| 655 | |
| 656 | Example: |
| 657 | artifacts repo create build-cache --description "CI artifacts" |
| 658 | artifacts repo list |
| 659 | `; |
| 660 | } |
| 661 | |
| 662 | function tokenHelp(): string { |
| 663 | return `usage: artifacts token <subcommand> [<args>] |