Beispiel #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)
}
Beispiel #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)
}
Beispiel #3
0
func init() {
	subcommands.Register(&list)
}
Beispiel #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)
}
Beispiel #5
0
func init() {
	subcommands.Register(&allow)
}
Beispiel #6
0
func init() {
	subcommands.Register(&run)
}
Beispiel #7
0
func init() {
	subcommands.Register(&mount)
}
Beispiel #8
0
func init() {
	Calc.BoolVar(&Calc.Config.Verbose, "v", false, "verbose output")
	subcommands.Register(&Calc)
}
Beispiel #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)
}
Beispiel #10
0
func init() {
	subcommands.Register(&ping)
}
Beispiel #11
0
func init() {
	subcommands.Register(&buckets)
}
Beispiel #12
0
func init() {
	subcommands.Register(&Sum)
	Sum.BoolVar(&Sum.Config.Frob, "frobnicate", false, "frobnicate the qubbitz")
}
Beispiel #13
0
func init() {
	subcommands.Register(&create)
}
Beispiel #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)
}
Beispiel #15
0
func init() {
	subcommands.Register(&decode)
}
Beispiel #16
0
func init() {
	add.StringVar(&add.Config.Sharing, "sharing", "default", "sharing group to encrypt content for")
	subcommands.Register(&add)
}
Beispiel #17
0
func init() {
	subcommands.Register(&hash)
}
Beispiel #18
0
func init() {
	subcommands.Register(&add)
}
Beispiel #19
0
func init() {
	subcommands.Register(&version)
}