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