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