Documentation ¶
Index ¶
- Variables
- func InsecureInput(message string) []byte
- func LoadConfig(wg *sync.WaitGroup)
- func LoadNotebook(wg *sync.WaitGroup)
- func ParseDate(argument string) time.Time
- func SecureInput(message string) []byte
- func SetNtDir()
- func WriteNotebook(notebook Notebook, filename string) error
- type Arguments
- type Authentication
- type CommandType
- type Config
- type Note
- type Notebook
- type NotebookConfig
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Action *log.Logger Warn *log.Logger Info *log.Logger Error *log.Logger Fatal *log.Logger )
View Source
var Cyan = "\033[34m"
View Source
var HelpString string = `` /* 563-byte string literal not displayed */
View Source
var Magenta = "\033[35m"
View Source
var NtConfigErr error
View Source
var NtNotesErr error
View Source
var NtPath string
loaded by fs
View Source
var NtPathErr error
View Source
var Red = "\033[31m"
View Source
var Reset = "\033[0m"
colors
View Source
var TestMode bool = false
other
View Source
var Yellow = "\033[33m"
Functions ¶
func InsecureInput ¶
func LoadConfig ¶
func LoadNotebook ¶
func SecureInput ¶
func WriteNotebook ¶
Types ¶
type Arguments ¶
type Authentication ¶
type CommandType ¶
type CommandType int
const ( None CommandType = iota // notebook Add Tag List Move Tags Undo Clear Server Search Modify Comment // server Pull Push Ping )
type Config ¶
type Config struct { Notebook NotebookConfig `toml:"notebook"` Server ServerConfig `toml:"server"` }
var DefaultConfig Config = Config{ Server: ServerConfig{ Url: "", Port: ":8282", }, Notebook: NotebookConfig{ Width: 30, DateFormats: []string{"2006-01-02T15:04", "2006-01-02", "Jan 02", "2", "Mon"}, LsDefault: "--all", }, }
var NtConfig Config
type NotebookConfig ¶
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.