示例#1
0
文件: cas.go 项目: read-later/bazil
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
文件: cli.go 项目: read-later/bazil
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
文件: allow.go 项目: read-later/bazil
func init() {
	subcommands.Register(&allow)
}
示例#6
0
func init() {
	subcommands.Register(&run)
}
示例#7
0
文件: mount.go 项目: read-later/bazil
func init() {
	subcommands.Register(&mount)
}
示例#8
0
文件: calc.go 项目: jgluck/bazil
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
文件: ping.go 项目: jgluck/bazil
func init() {
	subcommands.Register(&ping)
}
示例#11
0
func init() {
	subcommands.Register(&buckets)
}
示例#12
0
文件: sum.go 项目: jgluck/bazil
func init() {
	subcommands.Register(&Sum)
	Sum.BoolVar(&Sum.Config.Frob, "frobnicate", false, "frobnicate the qubbitz")
}
示例#13
0
文件: create.go 项目: jgluck/bazil
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
文件: add.go 项目: read-later/bazil
func init() {
	add.StringVar(&add.Config.Sharing, "sharing", "default", "sharing group to encrypt content for")
	subcommands.Register(&add)
}
示例#17
0
文件: hash.go 项目: jgluck/bazil
func init() {
	subcommands.Register(&hash)
}
示例#18
0
文件: add.go 项目: jgluck/bazil
func init() {
	subcommands.Register(&add)
}
示例#19
0
文件: version.go 项目: jgluck/bazil
func init() {
	subcommands.Register(&version)
}