MCPcopy Create free account
hub / github.com/brimdata/super / SetFlags

Method SetFlags

cli/poolflags/flags.go:14–17  ·  view source on GitHub ↗
(fs *flag.FlagSet)

Source from the content-addressed store, hash-verified

12}
13
14func (l *Flags) SetFlags(fs *flag.FlagSet) {
15 defaultHead, _ := readHead()
16 fs.StringVar(&l.defaultHead, "use", defaultHead, "commit to use, i.e., pool, pool@branch, or pool@commit")
17}
18
19func (f *Flags) HEAD() (*dbid.Commitish, error) {
20 if f.defaultHead == "" {

Callers

nothing calls this directly

Calls 1

readHeadFunction · 0.85

Tested by

no test coverage detected