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 }
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 }
func (n1ql *N1qlsh) Init(c *api.Context, commands api.CommandMap) (err error) { api.CreateFile(n1ql.HistoryFile(), false) return }