Reformat documentation messages
This commit is contained in:
parent
aefde6eec2
commit
c80c8f2297
29 changed files with 61 additions and 61 deletions
|
|
@ -12,11 +12,11 @@ import (
|
||||||
var Backup wisski_distillery.Command = backup{}
|
var Backup wisski_distillery.Command = backup{}
|
||||||
|
|
||||||
type backup struct {
|
type backup struct {
|
||||||
NoPrune bool `short:"n" long:"no-prune" description:"Do not prune older backup archives"`
|
NoPrune bool `short:"n" long:"no-prune" description:"do not prune older backup archives"`
|
||||||
StagingOnly bool `short:"s" long:"staging-only" description:"Do not package into a backup archive, but only create a staging directory"`
|
StagingOnly bool `short:"s" long:"staging-only" description:"do not package into a backup archive, but only create a staging directory"`
|
||||||
ConcurrentSnapshots int `short:"c" long:"concurrent-snapshots" description:"Maximum number of concurrent snapshots" default:"2"`
|
ConcurrentSnapshots int `short:"c" long:"concurrent-snapshots" description:"maximum number of concurrent snapshots" default:"2"`
|
||||||
Positionals struct {
|
Positionals struct {
|
||||||
Dest string `positional-arg-name:"DEST" description:"Destination path to write backup archive to. Defaults to the snapshots/archives/ directory"`
|
Dest string "positional-arg-name:\"DEST\" description:\"destination path to write backup archive to. defaults to the `snapshots/archives/` directory\""
|
||||||
} `positional-args:"true"`
|
} `positional-args:"true"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -26,7 +26,7 @@ func (backup) Description() wisski_distillery.Description {
|
||||||
NeedsDistillery: true,
|
NeedsDistillery: true,
|
||||||
},
|
},
|
||||||
Command: "backup",
|
Command: "backup",
|
||||||
Description: "Makes a backup of the entire distillery",
|
Description: "makes a backup of the entire distillery",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,10 @@ import (
|
||||||
var BlindUpdate wisski_distillery.Command = blindUpdate{}
|
var BlindUpdate wisski_distillery.Command = blindUpdate{}
|
||||||
|
|
||||||
type blindUpdate struct {
|
type blindUpdate struct {
|
||||||
Parallel int `short:"p" long:"parallel" description:"run on (at most) this many instances in parallel. 0 for no limit." default:"1"`
|
Parallel int `short:"p" long:"parallel" description:"run on (at most) this many instances in parallel. 0 for no limit" default:"1"`
|
||||||
Force bool `short:"f" long:"force" description:"force running blind-update even if AutoBlindUpdate is set to false"`
|
Force bool "short:\"f\" long:\"force\" description:\"force running blind-update even if `AutoBlindUpdate` is set to false\""
|
||||||
Positionals struct {
|
Positionals struct {
|
||||||
Slug []string `positional-arg-name:"SLUG" required:"0" description:"slug of instance(s) to run blind-update in"`
|
Slug []string `positional-arg-name:"SLUG" required:"0" description:"slug of instances to update"`
|
||||||
} `positional-args:"true"`
|
} `positional-args:"true"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -29,7 +29,7 @@ func (blindUpdate) Description() wisski_distillery.Description {
|
||||||
NeedsDistillery: true,
|
NeedsDistillery: true,
|
||||||
},
|
},
|
||||||
Command: "blind_update",
|
Command: "blind_update",
|
||||||
Description: "Runs the blind update in the provided instances",
|
Description: "runs the blind update in the provided instances",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ func (cBootstrap) Description() wisski_distillery.Description {
|
||||||
NeedsDistillery: false,
|
NeedsDistillery: false,
|
||||||
},
|
},
|
||||||
Command: "bootstrap",
|
Command: "bootstrap",
|
||||||
Description: "Bootstraps the installation of a Distillery System",
|
Description: "bootstraps the installation of a distillery system",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ func (c cfg) Description() wisski_distillery.Description {
|
||||||
NeedsDistillery: true,
|
NeedsDistillery: true,
|
||||||
},
|
},
|
||||||
Command: "config",
|
Command: "config",
|
||||||
Description: "Prints information about configuration",
|
Description: "prints information about configuration",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ type cron struct {
|
||||||
Parallel int `short:"p" long:"parallel" description:"run on (at most) this many instances in parallel. 0 for no limit." default:"1"`
|
Parallel int `short:"p" long:"parallel" description:"run on (at most) this many instances in parallel. 0 for no limit." default:"1"`
|
||||||
|
|
||||||
Positionals struct {
|
Positionals struct {
|
||||||
Slug []string `positional-arg-name:"SLUG" required:"0" description:"slug of instance(s) to run cron in"`
|
Slug []string `positional-arg-name:"SLUG" required:"0" description:"slug of instances to run cron in"`
|
||||||
} `positional-args:"true"`
|
} `positional-args:"true"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -27,7 +27,7 @@ func (cron) Description() wisski_distillery.Description {
|
||||||
NeedsDistillery: true,
|
NeedsDistillery: true,
|
||||||
},
|
},
|
||||||
Command: "cron",
|
Command: "cron",
|
||||||
Description: "Runs the cron script for several instances",
|
Description: "runs the cron script for several instances",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ func (setting) Description() wisski_distillery.Description {
|
||||||
NeedsDistillery: true,
|
NeedsDistillery: true,
|
||||||
},
|
},
|
||||||
Command: "drupal_setting",
|
Command: "drupal_setting",
|
||||||
Description: "Get or set a drupal setting",
|
Description: "get or set a drupal setting",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,13 +16,13 @@ import (
|
||||||
var DrupalUser wisski_distillery.Command = duser{}
|
var DrupalUser wisski_distillery.Command = duser{}
|
||||||
|
|
||||||
type duser struct {
|
type duser struct {
|
||||||
CheckCommonPasswords bool `short:"d" long:"check-common-passwords" description:"check for most common passwords. Operates on all users concurrently."`
|
CheckCommonPasswords bool `short:"d" long:"check-common-passwords" description:"check for most common passwords. operates on all users concurrently."`
|
||||||
CheckPasswdInteractive bool `short:"c" long:"check-password" description:"interactively check user password"`
|
CheckPasswdInteractive bool `short:"c" long:"check-password" description:"interactively check user password"`
|
||||||
ResetPasswd bool `short:"r" long:"reset-password" description:"reset password for user"`
|
ResetPasswd bool `short:"r" long:"reset-password" description:"reset password for user"`
|
||||||
Login bool `short:"l" long:"login" description:"print url to login as"`
|
Login bool `short:"l" long:"login" description:"print url to login as"`
|
||||||
Positionals struct {
|
Positionals struct {
|
||||||
Slug string `positional-arg-name:"SLUG" required:"1-1" description:"slug of instance to manage"`
|
Slug string `positional-arg-name:"SLUG" required:"1-1" description:"slug of instance to manage"`
|
||||||
User string `positional-arg-name:"USER" description:"username to manage. May be omitted for some actions"`
|
User string `positional-arg-name:"USER" description:"username to manage. may be omitted for some actions"`
|
||||||
} `positional-args:"true"`
|
} `positional-args:"true"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ import (
|
||||||
var Info wisski_distillery.Command = info{}
|
var Info wisski_distillery.Command = info{}
|
||||||
|
|
||||||
type info struct {
|
type info struct {
|
||||||
JSON bool `short:"j" long:"json" description:"Print information as JSON instead of as string"`
|
JSON bool `short:"j" long:"json" description:"print information as JSON instead of as string"`
|
||||||
Positionals struct {
|
Positionals struct {
|
||||||
Slug string `positional-arg-name:"SLUG" required:"1-1" description:"slug of instance to show info about"`
|
Slug string `positional-arg-name:"SLUG" required:"1-1" description:"slug of instance to show info about"`
|
||||||
} `positional-args:"true"`
|
} `positional-args:"true"`
|
||||||
|
|
@ -24,7 +24,7 @@ func (info) Description() wisski_distillery.Description {
|
||||||
NeedsDistillery: true,
|
NeedsDistillery: true,
|
||||||
},
|
},
|
||||||
Command: "info",
|
Command: "info",
|
||||||
Description: "Provide information about a single instance",
|
Description: "provide information about a single instance",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@ import (
|
||||||
var InstanceLock wisski_distillery.Command = instanceLock{}
|
var InstanceLock wisski_distillery.Command = instanceLock{}
|
||||||
|
|
||||||
type instanceLock struct {
|
type instanceLock struct {
|
||||||
Lock bool `short:"l" long:"lock" description:"Lock the provided WissKI instance"`
|
Lock bool `short:"l" long:"lock" description:"lock the provided instance"`
|
||||||
Unlock bool `short:"u" long:"unlock" description:"Unlock the provided WissKI instance"`
|
Unlock bool `short:"u" long:"unlock" description:"unlock the provided instance"`
|
||||||
Positionals struct {
|
Positionals struct {
|
||||||
Slug string `positional-arg-name:"SLUG" required:"1-1" description:"slug of instance to lock or unlock"`
|
Slug string `positional-arg-name:"SLUG" required:"1-1" description:"slug of instance to lock or unlock"`
|
||||||
} `positional-args:"true"`
|
} `positional-args:"true"`
|
||||||
|
|
@ -24,7 +24,7 @@ func (instanceLock) Description() wisski_distillery.Description {
|
||||||
NeedsDistillery: true,
|
NeedsDistillery: true,
|
||||||
},
|
},
|
||||||
Command: "instance_lock",
|
Command: "instance_lock",
|
||||||
Description: "Locks or unlocks a WissKI instance",
|
Description: "locks or unlocks an instance",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ func (license) Description() wisski_distillery.Description {
|
||||||
NeedsDistillery: false,
|
NeedsDistillery: false,
|
||||||
},
|
},
|
||||||
Command: "license",
|
Command: "license",
|
||||||
Description: "Print licensing information about wdcli and exit. ",
|
Description: "print licensing information about wdcli and exit",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ var Ls wisski_distillery.Command = ls{}
|
||||||
|
|
||||||
type ls struct {
|
type ls struct {
|
||||||
Positionals struct {
|
Positionals struct {
|
||||||
Slug []string `positional-arg-name:"SLUG" required:"0" description:"slug(s) of instance(s) to list"`
|
Slug []string `positional-arg-name:"SLUG" required:"0" description:"slugs of instances to list. if empty, list all instances"`
|
||||||
} `positional-args:"true"`
|
} `positional-args:"true"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -20,7 +20,7 @@ func (ls) Description() wisski_distillery.Description {
|
||||||
NeedsDistillery: true,
|
NeedsDistillery: true,
|
||||||
},
|
},
|
||||||
Command: "ls",
|
Command: "ls",
|
||||||
Description: "Lists WissKI instances",
|
Description: "lists instances",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ func (makeMysqlAccount) Description() wisski_distillery.Description {
|
||||||
IncludeUnknown: true,
|
IncludeUnknown: true,
|
||||||
},
|
},
|
||||||
Command: "make_mysql_account",
|
Command: "make_mysql_account",
|
||||||
Description: "Open a shell in the provided instance",
|
Description: "opens a shell in the provided instance",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,9 @@ import (
|
||||||
var Monday wisski_distillery.Command = monday{}
|
var Monday wisski_distillery.Command = monday{}
|
||||||
|
|
||||||
type monday struct {
|
type monday struct {
|
||||||
UpdateInstances bool `short:"u" long:"update-instances" description:"Fully update instances. May take a long time, and is potentially breaking. "`
|
UpdateInstances bool `short:"u" long:"update-instances" description:"fully update instances. may take a long time, and is potentially breaking"`
|
||||||
Positionals struct {
|
Positionals struct {
|
||||||
GraphdbZip string `positional-arg-name:"PATH_TO_GRAPHDB_ZIP" required:"1-1" description:"path to the graphdb.zip file"`
|
GraphdbZip string "positional-arg-name:\"PATH_TO_GRAPHDB_ZIP\" required:\"1-1\" description:\"path to the `graphdb.zip` file\""
|
||||||
} `positional-args:"true"`
|
} `positional-args:"true"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -24,7 +24,7 @@ func (monday) Description() wisski_distillery.Description {
|
||||||
NeedsDistillery: true,
|
NeedsDistillery: true,
|
||||||
},
|
},
|
||||||
Command: "monday",
|
Command: "monday",
|
||||||
Description: "Runs regular monday tasks",
|
Description: "runs regular monday tasks",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ func (mysql) Description() wisski_distillery.Description {
|
||||||
IncludeUnknown: true,
|
IncludeUnknown: true,
|
||||||
},
|
},
|
||||||
Command: "mysql",
|
Command: "mysql",
|
||||||
Description: "Opens a mysql shell",
|
Description: "opens a mysql shell",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ var Pathbuilders wisski_distillery.Command = pathbuilders{}
|
||||||
type pathbuilders struct {
|
type pathbuilders struct {
|
||||||
Positionals struct {
|
Positionals struct {
|
||||||
Slug string `positional-arg-name:"SLUG" required:"1-1" description:"slug of instance to export pathbuilders of"`
|
Slug string `positional-arg-name:"SLUG" required:"1-1" description:"slug of instance to export pathbuilders of"`
|
||||||
Name string `positional-arg-name:"NAME" description:"Name of pathbuilder to get. If omitted, show a list of all pathbuilders"`
|
Name string `positional-arg-name:"NAME" description:"name of pathbuilder to get. if omitted, show a list of all pathbuilders"`
|
||||||
} `positional-args:"true"`
|
} `positional-args:"true"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -22,7 +22,7 @@ func (pathbuilders) Description() wisski_distillery.Description {
|
||||||
NeedsDistillery: true,
|
NeedsDistillery: true,
|
||||||
},
|
},
|
||||||
Command: "pathbuilder",
|
Command: "pathbuilder",
|
||||||
Description: "Lists of displays pathbuilders of a specific WissKI instance",
|
Description: "list pathbuilders of a specific instance",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ func (prefixes) Description() wisski_distillery.Description {
|
||||||
NeedsDistillery: true,
|
NeedsDistillery: true,
|
||||||
},
|
},
|
||||||
Command: "prefixes",
|
Command: "prefixes",
|
||||||
Description: "List all Prefixes for a specific WissKI",
|
Description: "list all prefixes for a specific instance",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ var Provision wisski_distillery.Command = provision{}
|
||||||
|
|
||||||
type provision struct {
|
type provision struct {
|
||||||
Positionals struct {
|
Positionals struct {
|
||||||
Slug string `positional-arg-name:"slug" required:"1-1" description:"name of WissKI Instance to create"`
|
Slug string `positional-arg-name:"slug" required:"1-1" description:"slug of instance to create"`
|
||||||
} `positional-args:"true"`
|
} `positional-args:"true"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -23,7 +23,7 @@ func (provision) Description() wisski_distillery.Description {
|
||||||
NeedsDistillery: true,
|
NeedsDistillery: true,
|
||||||
},
|
},
|
||||||
Command: "provision",
|
Command: "provision",
|
||||||
Description: "Creates a new WissKI Instance",
|
Description: "creates a new instance",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,9 @@ import (
|
||||||
var Purge wisski_distillery.Command = purge{}
|
var Purge wisski_distillery.Command = purge{}
|
||||||
|
|
||||||
type purge struct {
|
type purge struct {
|
||||||
Yes bool `short:"y" long:"yes" description:"Skip asking for confirmation"`
|
Yes bool `short:"y" long:"yes" description:"do not ask for confirmation"`
|
||||||
Positionals struct {
|
Positionals struct {
|
||||||
Slug string `positional-arg-name:"slug" required:"1-1" description:"name of WissKI Instance to purge"`
|
Slug string `positional-arg-name:"slug" required:"1-1" description:"name of instance to purge"`
|
||||||
} `positional-args:"true"`
|
} `positional-args:"true"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -24,7 +24,7 @@ func (purge) Description() wisski_distillery.Description {
|
||||||
NeedsDistillery: true,
|
NeedsDistillery: true,
|
||||||
},
|
},
|
||||||
Command: "purge",
|
Command: "purge",
|
||||||
Description: "Purges a WissKI Instance",
|
Description: "purges an instance",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ var Rebuild wisski_distillery.Command = rebuild{}
|
||||||
type rebuild struct {
|
type rebuild struct {
|
||||||
Parallel int `short:"p" long:"parallel" description:"run on (at most) this many instances in parallel. 0 for no limit." default:"1"`
|
Parallel int `short:"p" long:"parallel" description:"run on (at most) this many instances in parallel. 0 for no limit." default:"1"`
|
||||||
Positionals struct {
|
Positionals struct {
|
||||||
Slug []string `positional-arg-name:"SLUG" required:"0" description:"slug of instance(s) to run rebuild"`
|
Slug []string `positional-arg-name:"SLUG" required:"0" description:"slug of instance or instances to run rebuild"`
|
||||||
} `positional-args:"true"`
|
} `positional-args:"true"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -27,7 +27,7 @@ func (rebuild) Description() wisski_distillery.Description {
|
||||||
NeedsDistillery: true,
|
NeedsDistillery: true,
|
||||||
},
|
},
|
||||||
Command: "rebuild",
|
Command: "rebuild",
|
||||||
Description: "Runs the rebuild script for several instances",
|
Description: "runs the rebuild script for several instances",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ var Reserve wisski_distillery.Command = reserve{}
|
||||||
|
|
||||||
type reserve struct {
|
type reserve struct {
|
||||||
Positionals struct {
|
Positionals struct {
|
||||||
Slug string `positional-arg-name:"slug" required:"1-1" description:"name of WissKI Instance to reserve"`
|
Slug string `positional-arg-name:"slug" required:"1-1" description:"name of instance to reserve"`
|
||||||
} `positional-args:"true"`
|
} `positional-args:"true"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -24,7 +24,7 @@ func (reserve) Description() wisski_distillery.Description {
|
||||||
NeedsDistillery: true,
|
NeedsDistillery: true,
|
||||||
},
|
},
|
||||||
Command: "reserve",
|
Command: "reserve",
|
||||||
Description: "Reserves a new WissKI Instance",
|
Description: "reserves a new instance",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ func (s server) Description() wisski_distillery.Description {
|
||||||
NeedsDistillery: true,
|
NeedsDistillery: true,
|
||||||
},
|
},
|
||||||
Command: "server",
|
Command: "server",
|
||||||
Description: "Starts a server with information about this distillery",
|
Description: "starts a server with information about this distillery",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ var Shell wisski_distillery.Command = shell{}
|
||||||
|
|
||||||
type shell struct {
|
type shell struct {
|
||||||
Positionals struct {
|
Positionals struct {
|
||||||
Slug string `positional-arg-name:"SLUG" required:"1-1" description:"slug of instance to show run shell in"`
|
Slug string `positional-arg-name:"SLUG" required:"1-1" description:"slug of instance to run shell in"`
|
||||||
Args []string `positional-arg-name:"ARGS" description:"arguments to pass to the shell"`
|
Args []string `positional-arg-name:"ARGS" description:"arguments to pass to the shell"`
|
||||||
} `positional-args:"true"`
|
} `positional-args:"true"`
|
||||||
}
|
}
|
||||||
|
|
@ -28,7 +28,7 @@ func (shell) Description() wisski_distillery.Description {
|
||||||
IncludeUnknown: true,
|
IncludeUnknown: true,
|
||||||
},
|
},
|
||||||
Command: "shell",
|
Command: "shell",
|
||||||
Description: "Open a shell in the provided instance",
|
Description: "open a shell in the provided instance",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,12 +11,12 @@ import (
|
||||||
var Snapshot wisski_distillery.Command = snapshot{}
|
var Snapshot wisski_distillery.Command = snapshot{}
|
||||||
|
|
||||||
type snapshot struct {
|
type snapshot struct {
|
||||||
Keepalive bool `short:"k" long:"keepalive" description:"Keep instance running while taking a backup. Might lead to inconsistent state"`
|
Keepalive bool `short:"k" long:"keepalive" description:"keep instance running while taking a backup. might lead to inconsistent state"`
|
||||||
StagingOnly bool `short:"s" long:"staging-only" description:"Do not package into a snapshot archive, but only create a staging directory"`
|
StagingOnly bool `short:"s" long:"staging-only" description:"do not package into a snapshot archive, but only create a staging directory"`
|
||||||
|
|
||||||
Positionals struct {
|
Positionals struct {
|
||||||
Slug string `positional-arg-name:"SLUG" required:"1-1" description:"slug of instance to take a snapshot of"`
|
Slug string `positional-arg-name:"SLUG" required:"1-1" description:"slug of instance to take a snapshot of"`
|
||||||
Dest string `positional-arg-name:"DEST" description:"Destination path to write snapshot archive to. Defaults to the snapshots/archives/ directory"`
|
Dest string "positional-arg-name:\"DEST\" description:\"destination path to write snapshot archive to. defaults to the `snapshots/archives/` directory\""
|
||||||
} `positional-args:"true"`
|
} `positional-args:"true"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -26,7 +26,7 @@ func (snapshot) Description() wisski_distillery.Description {
|
||||||
NeedsDistillery: true,
|
NeedsDistillery: true,
|
||||||
},
|
},
|
||||||
Command: "snapshot",
|
Command: "snapshot",
|
||||||
Description: "Generates a snapshot archive for the provided archive",
|
Description: "generates a snapshot archive for the provided instance",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ var SSH wisski_distillery.Command = ssh{}
|
||||||
|
|
||||||
type ssh struct {
|
type ssh struct {
|
||||||
Bind string `short:"b" long:"bind" description:"address to listen on" default:"127.0.0.1:2223"`
|
Bind string `short:"b" long:"bind" description:"address to listen on" default:"127.0.0.1:2223"`
|
||||||
PrivateKeyPath string `short:"p" long:"private-key-path" description:"Path to store private host keys in" required:"1"`
|
PrivateKeyPath string `short:"p" long:"private-key-path" description:"path to store private host keys in" required:"1"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s ssh) Description() wisski_distillery.Description {
|
func (s ssh) Description() wisski_distillery.Description {
|
||||||
|
|
@ -20,7 +20,7 @@ func (s ssh) Description() wisski_distillery.Description {
|
||||||
NeedsDistillery: true,
|
NeedsDistillery: true,
|
||||||
},
|
},
|
||||||
Command: "ssh",
|
Command: "ssh",
|
||||||
Description: "Starts the ssh server to allow clients to connect to this distillery",
|
Description: "starts the ssh server to allow clients to connect to this distillery",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import (
|
||||||
var Status wisski_distillery.Command = cStatus{}
|
var Status wisski_distillery.Command = cStatus{}
|
||||||
|
|
||||||
type cStatus struct {
|
type cStatus struct {
|
||||||
JSON bool `short:"j" long:"json" description:"Print status as JSON instead of as string"`
|
JSON bool `short:"j" long:"json" description:"print status as JSON instead of as string"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cStatus) Description() wisski_distillery.Description {
|
func (cStatus) Description() wisski_distillery.Description {
|
||||||
|
|
@ -20,7 +20,7 @@ func (cStatus) Description() wisski_distillery.Description {
|
||||||
NeedsDistillery: true,
|
NeedsDistillery: true,
|
||||||
},
|
},
|
||||||
Command: "status",
|
Command: "status",
|
||||||
Description: "Provide information about the distillery as a whole",
|
Description: "provide information about the distillery as a whole",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,8 @@ import (
|
||||||
var SystemPause wisski_distillery.Command = systempause{}
|
var SystemPause wisski_distillery.Command = systempause{}
|
||||||
|
|
||||||
type systempause struct {
|
type systempause struct {
|
||||||
Stop bool `short:"d" long:"stop" description:"Stop all the components"`
|
Stop bool `short:"d" long:"stop" description:"stop all the components"`
|
||||||
Start bool `short:"u" long:"start" description:"Start all the components"`
|
Start bool `short:"u" long:"start" description:"start all the components"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (systempause) Description() wisski_distillery.Description {
|
func (systempause) Description() wisski_distillery.Description {
|
||||||
|
|
@ -28,7 +28,7 @@ func (systempause) Description() wisski_distillery.Description {
|
||||||
NeedsDistillery: true,
|
NeedsDistillery: true,
|
||||||
},
|
},
|
||||||
Command: "system_pause",
|
Command: "system_pause",
|
||||||
Description: "Stops or Starts the entire WissKI Distillery system",
|
Description: "stops or starts the entire distillery system",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ import (
|
||||||
var SystemUpdate wisski_distillery.Command = systemupdate{}
|
var SystemUpdate wisski_distillery.Command = systemupdate{}
|
||||||
|
|
||||||
type systemupdate struct {
|
type systemupdate struct {
|
||||||
InstallDocker bool `short:"a" long:"install-docker" description:"Try to automatically install docker. Assumes 'apt-get' as a package manager. "`
|
InstallDocker bool "short:\"a\" long:\"install-docker\" description:\"try to automatically install docker. assumes `apt-get` as a package manager\""
|
||||||
Positionals struct {
|
Positionals struct {
|
||||||
GraphdbZip string `positional-arg-name:"PATH_TO_GRAPHDB_ZIP" required:"1-1" description:"path to the graphdb.zip file"`
|
GraphdbZip string `positional-arg-name:"PATH_TO_GRAPHDB_ZIP" required:"1-1" description:"path to the graphdb.zip file"`
|
||||||
} `positional-args:"true"`
|
} `positional-args:"true"`
|
||||||
|
|
@ -35,7 +35,7 @@ func (systemupdate) Description() wisski_distillery.Description {
|
||||||
IncludeUnknown: true,
|
IncludeUnknown: true,
|
||||||
},
|
},
|
||||||
Command: "system_update",
|
Command: "system_update",
|
||||||
Description: "Installs and Update Components of the WissKI Distillery System",
|
Description: "installs and updates components of the distillery system",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ func (updateprefixconfig) Description() wisski_distillery.Description {
|
||||||
NeedsDistillery: true,
|
NeedsDistillery: true,
|
||||||
},
|
},
|
||||||
Command: "update_prefix_config",
|
Command: "update_prefix_config",
|
||||||
Description: "Updates the prefix configuration",
|
Description: "updates the prefix configuration",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,10 @@ import "github.com/rs/zerolog"
|
||||||
|
|
||||||
// Flags are global flags for the wdcli executable
|
// Flags are global flags for the wdcli executable
|
||||||
type Flags struct {
|
type Flags struct {
|
||||||
LogLevel LogLevelString `short:"l" long:"loglevel" description:"Log level to use for logger" default:"info" choice:"trace" choice:"debug" choice:"info" choice:"warn" choice:"error" choice:"fatal" choice:"panic"`
|
LogLevel LogLevelString `short:"l" long:"loglevel" description:"log level" default:"info" choice:"trace" choice:"debug" choice:"info" choice:"warn" choice:"error" choice:"fatal" choice:"panic"`
|
||||||
ConfigPath string `short:"c" long:"config" description:"Path to distillery configuration file"`
|
ConfigPath string `short:"c" long:"config" description:"path to distillery configuration file"`
|
||||||
|
|
||||||
InternalInDocker bool `long:"internal-in-docker" description:"Internal Flag to signal the shell that it is running inside a docker stack belonging to the distillery"`
|
InternalInDocker bool `long:"internal-in-docker" description:"internal flag to signal the shell that it is running inside a docker stack belonging to the distillery"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type LogLevelString string
|
type LogLevelString string
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue