MCPcopy
hub / github.com/etcd-io/bbolt / Validate

Method Validate

cmd/bbolt/command/command_compact.go:48–54  ·  view source on GitHub ↗
(srcPath string)

Source from the content-addressed store, hash-verified

46}
47
48func (o *compactOptions) Validate(srcPath string) (err error) {
49 if o.dstPath == "" {
50 return errors.New("output file required")
51 }
52
53 return
54}
55
56func (o *compactOptions) Run(cmd *cobra.Command, srcPath string) (err error) {
57

Callers 1

newCompactCommandFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected