Пример #1
0
func init() {
	// paths are relative to datadir
	CAS.StringVar(&CAS.Config.Path, "path", "chunks", "path to chunk store, relative to datadir")
	CAS.StringVar(&CAS.Config.Sharing, "sharing", "default", "sharing group content is encrypted for")

	subcommands.Register(&CAS)
}
Пример #2
0
func init() {
	Bazil.BoolVar(&Bazil.Config.Verbose, "v", false, "verbose output")
	Bazil.BoolVar(&Bazil.Config.Debug, "debug", false, "debug output")

	Bazil.Config.DataDir = flagx.AbsPath(defaults.DataDir())
	// ensure absolute path to make the control socket show up nicer
	// in `ss` output
	Bazil.Var(&Bazil.Config.DataDir, "data-dir", "path to filesystem state")

	Bazil.StringVar(&Bazil.Config.CPUProfile, "cpuprofile", "", "write cpu profile to file")

	subcommands.Register(&Bazil)
}
Пример #3
0
func init() {
	subcommands.Register(&list)
}
Пример #4
0
func init() {
	create.StringVar(&create.Config.Backend, "backend", "local", "storage backend to use")
	create.StringVar(&create.Config.Sharing, "sharing", "default", "sharing group to encrypt content for")
	subcommands.Register(&create)
}
Пример #5
0
func init() {
	subcommands.Register(&allow)
}
Пример #6
0
func init() {
	subcommands.Register(&run)
}
Пример #7
0
func init() {
	subcommands.Register(&mount)
}
Пример #8
0
func init() {
	Calc.BoolVar(&Calc.Config.Verbose, "v", false, "verbose output")
	subcommands.Register(&Calc)
}
Пример #9
0
func init() {
	// paths are relative to datadir
	Bolt.StringVar(&Bolt.Config.Path, "path", "bazil.bolt", "path to Bolt database, relative to datadir")

	subcommands.Register(&Bolt)
}
Пример #10
0
func init() {
	subcommands.Register(&ping)
}
Пример #11
0
func init() {
	subcommands.Register(&buckets)
}
Пример #12
0
func init() {
	subcommands.Register(&Sum)
	Sum.BoolVar(&Sum.Config.Frob, "frobnicate", false, "frobnicate the qubbitz")
}
Пример #13
0
func init() {
	subcommands.Register(&create)
}
Пример #14
0
func init() {
	// paths are relative to datadir
	CAS.StringVar(&CAS.Config.Path, "path", "chunks", "path to chunk store, relative to datadir")

	subcommands.Register(&CAS)
}
Пример #15
0
func init() {
	subcommands.Register(&decode)
}
Пример #16
0
func init() {
	add.StringVar(&add.Config.Sharing, "sharing", "default", "sharing group to encrypt content for")
	subcommands.Register(&add)
}
Пример #17
0
func init() {
	subcommands.Register(&hash)
}
Пример #18
0
func init() {
	subcommands.Register(&add)
}
Пример #19
0
func init() {
	subcommands.Register(&version)
}