func (cbsh *Cbsh) HistoryFile() string { datadir := api.ShellDatadir() return path.Join(datadir, fmt.Sprintf(api.HISTORY_FILE_TMPL, api.SHELL_CB)) }
// Creates a data directory for cbsh shell. Data directory is expected to // contain logs, history, configuration etc ... func createDataDir() { if err := os.MkdirAll(api.ShellDatadir(), 0700); err != nil { panic(err) } }
func (n1ql *N1qlsh) HistoryFile() string { datadir := api.ShellDatadir() return path.Join(datadir, fmt.Sprintf(api.HISTORY_FILE_TMPL, api.SHELL_N1QL)) }
func (idx *Indexsh) HistoryFile() string { datadir := api.ShellDatadir() return path.Join(datadir, fmt.Sprintf(api.HISTORY_FILE_TMPL, api.SHELL_INDEX)) }