Esempio n. 1
0
func (cbsh *Cbsh) Init(c *api.Context, commands api.CommandMap) (err error) {
	api.CreateFile(cbsh.HistoryFile(), false)
	cbsh.Commands = commands
	// Url, Poolname, Bucketname are already initialized with ArgParse
	err = cbsh.Connect(c)
	return
}
Esempio n. 2
0
func (idx *Indexsh) Init(c *api.Context, commands api.CommandMap) (err error) {
	api.CreateFile(idx.HistoryFile(), false)
	idx.Config = nil
	idx.Programs = make(map[string]*sshc.Program)
	idx.Commands = commands
	return
}
Esempio n. 3
0
func (n1ql *N1qlsh) Init(c *api.Context, commands api.CommandMap) (err error) {
	api.CreateFile(n1ql.HistoryFile(), false)
	return
}