fix error hooks and add listing everything
This commit is contained in:
@@ -88,7 +88,7 @@ Usage:
|
||||
backy exec [command]
|
||||
|
||||
Available Commands:
|
||||
host Runs command defined in config file on the hosts in order specified.
|
||||
host Specify command(s) defined in config file on the host in order specified.
|
||||
hosts Runs command defined in config file on the hosts in order specified.
|
||||
|
||||
Flags:
|
||||
@@ -153,14 +153,14 @@ Global Flags:
|
||||
## list
|
||||
|
||||
```
|
||||
List commands, lists, or hosts defined in config file
|
||||
List commands, lists, or hosts defined in config file. The subcommands take zero or more arguments to print specific commands or lists
|
||||
|
||||
Usage:
|
||||
backy list [command]
|
||||
|
||||
Available Commands:
|
||||
cmds List commands defined in config file.
|
||||
lists List lists defined in config file.
|
||||
cmds Prints commands defined in config file.
|
||||
lists Prints lists defined in config file.
|
||||
|
||||
Flags:
|
||||
-h, --help help for list
|
||||
@@ -178,7 +178,7 @@ Use "backy list [command] --help" for more information about a command.
|
||||
## list cmds
|
||||
|
||||
```
|
||||
List commands defined in config file
|
||||
Prints commands defined in config file. Pass no arguments to print all commands
|
||||
|
||||
Usage:
|
||||
backy list cmds [cmd1 cmd2 cmd3...] [flags]
|
||||
@@ -197,7 +197,7 @@ Global Flags:
|
||||
## list lists
|
||||
|
||||
```
|
||||
List lists defined in config file
|
||||
Prints lists defined in config file. Pass no arguments to print all lists
|
||||
|
||||
Usage:
|
||||
backy list lists [list1 list2 ...] [flags]
|
||||
|
||||
@@ -2,14 +2,23 @@
|
||||
title: Exec
|
||||
---
|
||||
|
||||
The `exec` subcommand can do some things that the configuration file can't do yet. The command `exec host` can execute commands on many hosts.
|
||||
~~The `exec` subcommand can do some things that the configuration file can't do yet. The command `exec host` can execute commands on many hosts.~~
|
||||
|
||||
{{% notice info %}}
|
||||
For now only the `exec host` sub-command is implemented. More to come.
|
||||
{{% /notice %}}
|
||||
|
||||
{{% notice warning %}}
|
||||
The config file's `hosts` are overridden by this command. Hooks are not altered. For consistent results, create a local config file with only the hosts you want to use.
|
||||
{{% /notice %}}
|
||||
|
||||
|
||||
`exec host` takes the following arguments:
|
||||
|
||||
```sh
|
||||
-c, --commands strings Accepts space-separated names of commands.
|
||||
-h, --help help for host
|
||||
-m, --hosts strings Accepts space-separated names of hosts.
|
||||
-c, --command stringArray Accepts space-separated names of commands. Specify multiple times for multiple commands.
|
||||
-h, --help help for host
|
||||
-m, --hosts stringArray Accepts space-separated names of hosts. Specify multiple times for multiple hosts.
|
||||
```
|
||||
|
||||
The commands have to be defined in the config file. The hosts need to at least be in the ssh_config(5) file.
|
||||
|
||||
@@ -3,7 +3,7 @@ title: List
|
||||
---
|
||||
|
||||
|
||||
List commands, lists, or hosts defined in config file
|
||||
List commands, lists, or hosts defined in config file. The subcommands take zero or more arguments to print specific commands or lists
|
||||
|
||||
Usage:
|
||||
```
|
||||
@@ -11,8 +11,8 @@ Usage:
|
||||
```
|
||||
|
||||
Available Commands:
|
||||
cmds List commands defined in config file.
|
||||
lists List lists defined in config file.
|
||||
cmds Prints commands defined in config file.
|
||||
lists Prints lists defined in config file.
|
||||
|
||||
Flags:
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user