Exemplo n.º 1
0
func (cbsh *Cbsh) HistoryFile() string {
	datadir := api.ShellDatadir()
	return path.Join(datadir, fmt.Sprintf(api.HISTORY_FILE_TMPL, api.SHELL_CB))
}
Exemplo n.º 2
0
// 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)
	}
}
Exemplo n.º 3
0
func (n1ql *N1qlsh) HistoryFile() string {
	datadir := api.ShellDatadir()
	return path.Join(datadir, fmt.Sprintf(api.HISTORY_FILE_TMPL, api.SHELL_N1QL))
}
Exemplo n.º 4
0
func (idx *Indexsh) HistoryFile() string {
	datadir := api.ShellDatadir()
	return path.Join(datadir, fmt.Sprintf(api.HISTORY_FILE_TMPL, api.SHELL_INDEX))
}