forked from a/repotool
86 lines
1.7 KiB
YAML
86 lines
1.7 KiB
YAML
name: repotool
|
|
help: repo tool
|
|
version: 0.1.0
|
|
|
|
environment_variables:
|
|
- name: REPOTOOL_PATH
|
|
default: $HOME/repo
|
|
help: default path to clone to
|
|
- name: DEBUG_LOG
|
|
default: "0"
|
|
help: set to 1 to enable debug logg
|
|
|
|
commands:
|
|
- name: get
|
|
alias: g
|
|
help: gets repo if not found
|
|
dependencies:
|
|
git:
|
|
command: ["git"]
|
|
perl:
|
|
command: ["perl"]
|
|
jq:
|
|
command: ["jq"]
|
|
args:
|
|
- name: repo
|
|
required: true
|
|
help: URL to repo
|
|
flags:
|
|
- long: --ssh-user
|
|
help: ssh user to clone with.
|
|
arg: "ssh_user"
|
|
default: "git"
|
|
- long: --http-user
|
|
help: http user to clone with.
|
|
arg: "http_user"
|
|
default: ""
|
|
- long: --http-pass
|
|
help: http pass to clone with.
|
|
arg: "http_pass"
|
|
default: ""
|
|
- long: --method
|
|
short: -m
|
|
help: the method to clone the repo with
|
|
arg: "method"
|
|
default: "ssh"
|
|
allowed: ["ssh", "https", "http"]
|
|
examples:
|
|
- repo get tuxpa.in/a/repotool
|
|
- name: worktree
|
|
alias: [w, wt]
|
|
help: get worktree path for current repo
|
|
dependencies:
|
|
git:
|
|
command: ["git"]
|
|
perl:
|
|
command: ["perl"]
|
|
jq:
|
|
command: ["jq"]
|
|
args:
|
|
- name: name
|
|
required: false
|
|
help: Name of the worktree
|
|
flags:
|
|
- long: --list
|
|
short: -l
|
|
help: List existing worktrees for this repo
|
|
- long: --root
|
|
short: -r
|
|
help: Return the root directory of the original repo
|
|
examples:
|
|
- repo worktree feature-branch
|
|
- repo worktree -l
|
|
- repo worktree -r
|
|
- name: open
|
|
alias: o
|
|
help: open the current repository in web browser
|
|
dependencies:
|
|
git:
|
|
command: ["git"]
|
|
perl:
|
|
command: ["perl"]
|
|
jq:
|
|
command: ["jq"]
|
|
examples:
|
|
- repo open
|