cmd

package
v0.0.0-...-ae323db Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecConfigCmd

func ExecConfigCmd(c *cli.Context) error

ExecConfigCmd opens config json file `.vinote.json` on the home direcotory. If it still donesn't exist, this will create it.

func ExecNewCmd

func ExecNewCmd(c *cli.Context) error

func ExecOpenCmd

func ExecOpenCmd(c *cli.Context) error

func ExecSelectCmd

func ExecSelectCmd(c *cli.Context) error

func ExecVinoteCmd

func ExecVinoteCmd(c *cli.Context) error

ExecVinoteCmd runs on the user specified note directory with user specified editor (vi, Vim or Neovim).

Types

type Config

type Config struct {
	Editor   string `json:"editor"`
	Path     string `json:"path"`
	Selector string `json:"selector"`
}

func ReadConfig

func ReadConfig() (*Config, error)

func (*Config) GetFullPath

func (c *Config) GetFullPath() (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL