2024-05-01 23:12:04 +00:00
|
|
|
name: repotool
|
|
|
|
|
help: repo tool
|
|
|
|
|
version: 0.1.0
|
|
|
|
|
|
|
|
|
|
environment_variables:
|
2024-05-02 00:43:43 +00:00
|
|
|
- name: REPOTOOL_PATH
|
2024-05-01 23:12:04 +00:00
|
|
|
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"]
|
|
|
|
|
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
|