Documentation
¶
Index ¶
- Variables
- func InitLogging()
- type Cli
- func (c *Cli) Browse(uri string) error
- func (c *Cli) ExportTemplates() error
- func (c *Cli) Get(uri string) (*http.Response, error)
- func (c *Cli) GetTemplate(name string) string
- func (c *Cli) LoadConfigs(configFile string)
- func (c *Cli) Login() error
- func (c *Cli) Post(uri string, content string) (*http.Response, error)
- func (c *Cli) PrintUsage(ok bool)
- func (c *Cli) ProcessAllOptions() string
- func (c *Cli) ProcessOptions() string
- func (c *Cli) Put(uri string, content string) (*http.Response, error)
- func (c *Cli) RunCommand(command string) error
- func (c *Cli) SetEditing(dflt bool)
- type Exit
- type NoChangesFound
Constants ¶
This section is empty.
Variables ¶
View Source
var LOG_FORMAT = "%{color}%{time:2006-01-02T15:04:05.000Z07:00} %{level:-5s} [%{shortfile}]%{color:reset} %{message}"
Functions ¶
func InitLogging ¶
func InitLogging()
Types ¶
type Cli ¶
type Cli struct { CookieFile string UA *http.Client Usage func() string Commands map[string]func() error CommandAliases map[string]string Opts map[string]interface{} Args []string Options optigo.OptionParser Templates map[string]string Name string }
func (*Cli) ExportTemplates ¶
func (*Cli) GetTemplate ¶
func (*Cli) LoadConfigs ¶
func (*Cli) PrintUsage ¶
func (*Cli) ProcessAllOptions ¶
func (*Cli) ProcessOptions ¶
func (*Cli) RunCommand ¶
func (*Cli) SetEditing ¶
type NoChangesFound ¶
type NoChangesFound struct{}
func (NoChangesFound) Error ¶
func (f NoChangesFound) Error() string
Click to show internal directories.
Click to hide internal directories.