cmd/kgctl: add output options for showconf

This commit adds several output options to the `showconf` command of the
`kgctl` binary:
* `--as-peer`: this can be used to generate a peer configuration, which
can be used to configure the selected resource as a peer of another
WireGuard interface
* `--output`: this can be used to select the desired output format of
the peer resource, available options are: WireGuard, YAML, and JSON.
This commit is contained in:
Lucas Servén Marín
2019-05-08 01:31:36 +02:00
parent 5914a9468f
commit 90e68c7735
5 changed files with 185 additions and 17 deletions

View File

@@ -25,7 +25,6 @@ func graph() *cobra.Command {
return &cobra.Command{
Use: "graph",
Short: "Generates a graph of the Kilo network",
Long: "",
RunE: runGraph,
}
}