fix typos in messages
This commit is contained in:
parent
20448c67a3
commit
aefde6eec2
29 changed files with 91 additions and 55 deletions
|
|
@ -31,7 +31,7 @@ func (backup) Description() wisski_distillery.Description {
|
|||
}
|
||||
|
||||
var errBackupFailed = exit.Error{
|
||||
Message: "Failed to make a backup",
|
||||
Message: "failed to make a backup",
|
||||
ExitCode: exit.ExitGeneric,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ func (blindUpdate) Description() wisski_distillery.Description {
|
|||
}
|
||||
|
||||
var errBlindUpdateFailed = exit.Error{
|
||||
Message: "Failed to run blind update script for instance %q: exited with code %s",
|
||||
Message: "failed to run blind update script for instance %q: exited with code %s",
|
||||
ExitCode: exit.ExitGeneric,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -31,12 +31,12 @@ func (setting) Description() wisski_distillery.Description {
|
|||
|
||||
var errSettingGet = exit.Error{
|
||||
ExitCode: exit.ExitGeneric,
|
||||
Message: "Unable to get setting",
|
||||
Message: "unable to get setting",
|
||||
}
|
||||
|
||||
var errSettingSet = exit.Error{
|
||||
ExitCode: exit.ExitGeneric,
|
||||
Message: "Unable to set setting",
|
||||
Message: "unable to set setting",
|
||||
}
|
||||
|
||||
func (ds setting) Run(context wisski_distillery.Context) error {
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ func (du duser) AfterParse() error {
|
|||
}
|
||||
|
||||
var errPasswordsNotIdentical = exit.Error{
|
||||
Message: "Passwords are not identical",
|
||||
Message: "passwords are not identical",
|
||||
ExitCode: exit.ExitGeneric,
|
||||
}
|
||||
|
||||
|
|
@ -103,7 +103,7 @@ func (du duser) login(context wisski_distillery.Context, instance *wisski.WissKI
|
|||
}
|
||||
|
||||
var errPasswordFound = exit.Error{
|
||||
Message: "User had a dictionary password",
|
||||
Message: "user had a dictionary password",
|
||||
ExitCode: 5,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ func (instanceLock) Description() wisski_distillery.Description {
|
|||
}
|
||||
|
||||
var errLockUnlockExcluded = exit.Error{
|
||||
Message: "Exactly one of `--lock` and `--unlock` must be provied",
|
||||
Message: "exactly one of `--lock` and `--unlock` must be provied",
|
||||
ExitCode: exit.ExitCommandArguments,
|
||||
}
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ func (l instanceLock) AfterParse() error {
|
|||
}
|
||||
|
||||
var errNotUnlock = exit.Error{
|
||||
Message: "Unable to unlock instance: Not locked",
|
||||
Message: "unable to unlock instance: not locked",
|
||||
ExitCode: exit.ExitCommandArguments,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,12 +27,12 @@ func (pathbuilders) Description() wisski_distillery.Description {
|
|||
}
|
||||
|
||||
var errPathbuilders = exit.Error{
|
||||
Message: "Unable to export pathbuilder: %s",
|
||||
Message: "unable to export pathbuilder: %s",
|
||||
ExitCode: exit.ExitGeneric,
|
||||
}
|
||||
|
||||
var errNoPathbuilder = exit.Error{
|
||||
Message: "Pathbuilder %q does not exist",
|
||||
Message: "pathbuilder %q does not exist",
|
||||
ExitCode: exit.ExitGeneric,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ func (prefixes) Description() wisski_distillery.Description {
|
|||
|
||||
var errPrefixesGeneric = exit.Error{
|
||||
ExitCode: exit.ExitGeneric,
|
||||
Message: "Unable to load prefixes",
|
||||
Message: "unable to load prefixes",
|
||||
}
|
||||
|
||||
func (p prefixes) Run(context wisski_distillery.Context) error {
|
||||
|
|
|
|||
|
|
@ -30,12 +30,12 @@ func (provision) Description() wisski_distillery.Description {
|
|||
// TODO: AfterParse to check instance!
|
||||
|
||||
var errProvisionAlreadyExists = exit.Error{
|
||||
Message: "Instance %q already exists",
|
||||
Message: "instance %q already exists",
|
||||
ExitCode: exit.ExitGeneric,
|
||||
}
|
||||
|
||||
var errProvisionGeneric = exit.Error{
|
||||
Message: "Unable to provision instance %s: %s",
|
||||
Message: "unable to provision instance %s: %s",
|
||||
ExitCode: exit.ExitGeneric,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -29,17 +29,17 @@ func (purge) Description() wisski_distillery.Description {
|
|||
}
|
||||
|
||||
var errPurgeNoDetails = exit.Error{
|
||||
Message: "Unable to find instance details for purge: %s",
|
||||
Message: "unable to find instance details for purge: %s",
|
||||
ExitCode: exit.ExitGeneric,
|
||||
}
|
||||
|
||||
var errPurgeNoConfirmation = exit.Error{
|
||||
Message: "Aborting after request was not confirmed. Either type `yes` or pass `--yes` on the command line",
|
||||
Message: "aborting after request was not confirmed. either type `yes` or pass `--yes` on the command line",
|
||||
ExitCode: exit.ExitGeneric,
|
||||
}
|
||||
|
||||
var errPurgeGeneric = exit.Error{
|
||||
Message: "Unable to purge instance %s: %s",
|
||||
Message: "unable to purge instance %q: %s",
|
||||
ExitCode: exit.ExitGeneric,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ func (rebuild) Description() wisski_distillery.Description {
|
|||
}
|
||||
|
||||
var errRebuildFailed = exit.Error{
|
||||
Message: "Failed to run rebuild script for instance %q: exited with code %s",
|
||||
Message: "failed to run rebuild script for instance %q: exited with code %s",
|
||||
ExitCode: exit.ExitGeneric,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -31,12 +31,12 @@ func (reserve) Description() wisski_distillery.Description {
|
|||
// TODO: AfterParse to check instance!
|
||||
|
||||
var errReserveAlreadyExists = exit.Error{
|
||||
Message: "Instance %q already exists",
|
||||
Message: "instance %q already exists",
|
||||
ExitCode: exit.ExitGeneric,
|
||||
}
|
||||
|
||||
var errReserveGeneric = exit.Error{
|
||||
Message: "Unable to provision instance %s: %s",
|
||||
Message: "unable to provision instance %s: %s",
|
||||
ExitCode: exit.ExitGeneric,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ func (s server) Description() wisski_distillery.Description {
|
|||
|
||||
var errServerListen = exit.Error{
|
||||
ExitCode: exit.ExitGeneric,
|
||||
Message: "Unable to listen",
|
||||
Message: "unable to listen",
|
||||
}
|
||||
|
||||
func (s server) Run(context wisski_distillery.Context) error {
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ func (shell) Description() wisski_distillery.Description {
|
|||
}
|
||||
|
||||
var errShell = exit.Error{
|
||||
Message: "Unable to start shell: %s",
|
||||
Message: "unable to start shell: %s",
|
||||
ExitCode: exit.ExitGeneric,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ func (snapshot) Description() wisski_distillery.Description {
|
|||
}
|
||||
|
||||
var errSnapshotFailed = exit.Error{
|
||||
Message: "Failed to make a snapshot",
|
||||
Message: "failed to make a snapshot",
|
||||
ExitCode: exit.ExitGeneric,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ func (s ssh) Description() wisski_distillery.Description {
|
|||
|
||||
var errSSHListen = exit.Error{
|
||||
ExitCode: exit.ExitGeneric,
|
||||
Message: "Unable to listen",
|
||||
Message: "unable to listen",
|
||||
}
|
||||
|
||||
func (s ssh) Run(context wisski_distillery.Context) error {
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ func (systempause) Description() wisski_distillery.Description {
|
|||
}
|
||||
|
||||
var errStopStartExcluded = exit.Error{
|
||||
Message: "Exactly one of `--stop` and `--start` must be provied",
|
||||
Message: "exactly one of `--stop` and `--start` must be provied",
|
||||
ExitCode: exit.ExitCommandArguments,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ var errBoostrapFailedToCreateDirectory = exit.Error{
|
|||
}
|
||||
|
||||
var errBootstrapComponent = exit.Error{
|
||||
Message: "Unable to bootstrap %s: %s",
|
||||
Message: "unable to bootstrap %s: %s",
|
||||
ExitCode: exit.ExitGeneric,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ func (updateprefixconfig) Description() wisski_distillery.Description {
|
|||
}
|
||||
|
||||
var errPrefixUpdateFailed = exit.Error{
|
||||
Message: "Failed to update the prefix configuration",
|
||||
Message: "failed to update the prefix configuration",
|
||||
ExitCode: exit.ExitGeneric,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ func init() {
|
|||
// an error when no arguments are provided.
|
||||
var errNoArgumentsProvided = exit.Error{
|
||||
ExitCode: exit.ExitGeneralArguments,
|
||||
Message: "Need at least one argument. Use `wdcli license` to view licensing information. ",
|
||||
Message: "need at least one argument. use `wdcli license` to view licensing information",
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue