Пример #1
0
func (cbsh *Cbsh) HistoryFile() string {
	datadir := api.ShellDatadir()
	return path.Join(datadir, fmt.Sprintf(api.HISTORY_FILE_TMPL, api.SHELL_CB))
}
Пример #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)
	}
}
Пример #3
0
func (n1ql *N1qlsh) HistoryFile() string {
	datadir := api.ShellDatadir()
	return path.Join(datadir, fmt.Sprintf(api.HISTORY_FILE_TMPL, api.SHELL_N1QL))
}
Пример #4
0
func (idx *Indexsh) HistoryFile() string {
	datadir := api.ShellDatadir()
	return path.Join(datadir, fmt.Sprintf(api.HISTORY_FILE_TMPL, api.SHELL_INDEX))
}