Documentation
¶
Overview ¶
Package cli wires the gitdr subcommands (backup, restore, verify, doctor) over the stdlib flag package. Logs go to stderr; machine-readable output goes to stdout.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "dev"
Version is set at build time via -ldflags "-X gitdr.io/gitdr/internal/cli.Version=...".
Functions ¶
Types ¶
type WormAnswer ¶ added in v0.1.21
type WormAnswer struct {
// Verdict is the manifest's wormVerdict word for what the store answered, or nil when the
// check ended in an error instead of an answer.
Verdict *string `json:"verdict"`
// Mode is the lock's mode when it is a word gitdr knows, or nil.
Mode *string `json:"mode"`
// Code says why the store did not answer the question: its own error code, shaped, or one of
// the codes errorCode gives a failure that never reached it. Nil when it answered.
Code *string `json:"code"`
}
WormAnswer is what the worm check found, for a reader that must not parse Detail. Exported only because encoding/json will not fill an unexported embedded pointer when it decodes one.
Click to show internal directories.
Click to hide internal directories.