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