123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321 |
- name: sync-it
- author: Samuel W. Flint <swflint@flintfam.org>
- about: Synchronize directories flexibly
- settings:
- - SubcommandRequired
- args:
- - config:
- short: c
- long: config
- value_name: FILE
- help: Sets a custom config file
- takes_value: true
- - license:
- short: l
- long: license
- help: Shows license
- takes_value: false
- subcommands:
- - run:
- about: Run sychronization for repositories and groups
- aliases:
- - sync
- - rr
- args:
- - name:
- index: 1
- multiple: true
- value_name: REPO_OR_GROUP
- help: The name of a repository or group to sync
- - repository:
- about: Create and manage repositories
- settings:
- - SubcommandRequired
- aliases:
- - repo
- - r
- subcommands:
- - list:
- about: List repositories
- - register:
- about: Register the current directory as a repository
- args:
- - type:
- index: 1
- value_name: REPO_TYPE
- help: The type of repository
- required: true
- - name:
- long: name
- short: n
- value_name: REPO_NAME
- help: The name of the repository
- - options:
- index: 2
- value_name: OPTION
- help: Type-specific options, in form "name=value"
- multiple: true
- - config:
- about: Configure a repository
- args:
- - name:
- index: 1
- value_name: NAME
- help: The name of the repository
- required: true
- - autocreate:
- long: autocreate
- value_name: YES/NO
- help: Enable autocreation
- takes_value: true
- multiple: false
- - disable:
- long: disable
- value_name: YES/NO
- help: Disable repository
- takes_value: true
- multiple: false
- - options:
- long: options
- value_name: OPTION=VALUE
- help: Type-specific options
- multiple: true
- takes_value: true
- - show:
- about: Show information about a repository
- args:
- - name:
- index: 1
- value_name: NAME
- help: The name of the repository
- required: true
- - group:
- about: Create and manage groups of repositories
- settings:
- - SubcommandRequired
- subcommands:
- - create:
- about: Create a group
- args:
- - name:
- index: 1
- value_name: GROUP_NAME
- help: The name of the group
- required: true
- - delete:
- about: Delete a group
- args:
- - name:
- index: 1
- value_name: GROUP_NAME
- help: The name of the group
- required: true
- - add:
- about: Add a repo to a group
- args:
- - name:
- index: 1
- value_name: GROUP_NAME
- help: The name of the group
- required: true
- - repo:
- index: 2
- value_name: REPO_NAME
- help: The name of the repo
- required: true
- - act:
- about: Add action to a group
- args:
- - name:
- index: 1
- value_name: GROUP_NAME
- help: The name of the group
- required: true
- - action:
- index: 2
- value_name: ACTION_NAME
- help: The name of the action
- required: true
- - remove:
- about: Remove a repo from a group
- args:
- - name:
- index: 1
- value_name: GROUP_NAME
- help: The name of the group
- required: true
- - repo:
- index: 2
- value_name: REPO_NAME
- help: The name of the repo
- required: true
- - drop:
- about: Remove a group
- args:
- - name:
- index: 1
- value_name: GROUP_NAME
- help: The name of the group
- required: true
- - show:
- about: Show information about a group
- args:
- - name:
- index: 1
- value_name: NAME
- help: The name of the group
- required: true
- - list:
- about: List known groups
- - type:
- about: Create and manage repository types
- settings:
- - SubcommandRequired
- subcommands:
- - create:
- about: Create a new repository type
- args:
- - name:
- index: 1
- value_name: NAME
- help: Name of the repository type
- required: true
- - description:
- long: description
- takes_value: true
- help: Description of the repository type
- - create:
- long: create
- takes_value: true
- help: Command to create a repository of type NAME
- - inward:
- long: inward
- takes_value: true
- help: Command to perform inward sync of a repository of type NAME
- - outward:
- long: outward
- takes_value: true
- help: Command to perform outward sync of a repository of type NAME
- - status:
- long: status
- takes_value: true
- help: Command to display status of repository
- - pre_inward:
- long: pre-inward
- takes_value: true
- help: Command describing potential pre-inward action
- - post_inward:
- long: post-inward
- takes_value: true
- help: Command describing post-inward action
- - post_outward:
- long: post-outward
- takes_value: true
- help: Command describing post-outward action
- - config:
- about: Configure a repository type
- args:
- - name:
- index: 1
- value_name: NAME
- help: Name of the repository type
- required: true
- - description:
- long: description
- takes_value: true
- help: Description of the repository type
- - create:
- long: create
- takes_value: true
- help: Command to create a repository of type NAME
- - inward:
- long: inward
- takes_value: true
- help: Command to perform inward sync of a repository of type NAME
- - outward:
- long: outward
- takes_value: true
- help: Command to perform outward sync of a repository of type NAME
- - status:
- long: status
- takes_value: true
- help: Command to display status of repository
- - pre_inward:
- long: pre-inward
- takes_value: true
- help: Command describing potential pre-inward action
- - post_inward:
- long: post-inward
- takes_value: true
- help: Command describing post-inward action
- - post_outward:
- long: post-outward
- takes_value: true
- help: Command describing post-outward action
- - show:
- about: Show information about a type
- args:
- - name:
- index: 1
- value_name: NAME
- help: The name of the repository type
- required: true
- - list:
- about: List known repository types
- - action:
- about: Create and manage actions
- settings:
- - SubcommandRequired
- subcommands:
- - create:
- about: Create a new action
- args:
- - name:
- index: 1
- value_name: NAME
- help: The name of the action
- required: true
- - command:
- index: 2
- value_name: COMMAND
- help: The command the action runs
- required: true
- - description:
- long: description
- value_name: DESCRIPTION
- help: Description of the action
- takes_value: true
- - config:
- about: Configure an action
- args:
- - name:
- index: 1
- value_name: NAME
- help: The name of the action
- required: true
- - disabled:
- long: disabled
- value_name: YES/NO
- help: Enable this action
- takes_value: true
- - command:
- long: command
- value_name: COMMAND
- help: The command the action runs
- takes_value: true
- required: true
- - description:
- long: description
- value_name: DESCRIPTION
- help: Description of the action
- takes_value: true
- - show:
- about: Show information about an action
- args:
- - name:
- index: 1
- value_name: NAME
- help: The name of the repository type
- required: true
- - list:
- about: List known actions
|