forked from a/repotool
47 lines
915 B
YAML
47 lines
915 B
YAML
|
|
name: repotool
|
||
|
|
help: repo tool
|
||
|
|
version: 0.1.0
|
||
|
|
|
||
|
|
environment_variables:
|
||
|
|
- name: REPOS_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"]
|
||
|
|
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
|