cmd

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func InitLoggerFile

func InitLoggerFile(logpath string) *log.Logger

TODO - Wrap logger. If logger nil, drop the message

Types

type Column

type Column struct {
	Col []Widgets `mapstructure:"col"`
}

Col is constitued of widgets

type Feedly

type Feedly struct {
	Address string `mapstructure:"address"`
}

type General

type General struct {
	Keys    map[string]string `mapstructure:"keys"`
	Refresh int64             `mapstructure:"refresh"`
	Editor  string            `mapstructure:"editor"`
}

type Git

type Git struct {
	Path string `mapstructure:"path"`
}

type Github

type Github struct {
	Token      string `mapstructure:"token"`
	Owner      string `mapstructure:"owner"`
	Repository string `mapstructure:"repository"`
}

type GoogleAnalytics

type GoogleAnalytics struct {
	Keyfile string `mapstructure:"keyfile"`
	ViewID  string `mapstructure:"view_id"`
}

type Monitor

type Monitor struct {
	Address string `mapstructure:"address"`
}

type Project

type Project struct {
	Name        string                       `mapstructure:"name"`
	NameOptions map[string]string            `mapstructure:"name_options"`
	Services    Services                     `mapstructure:"services"`
	Themes      map[string]map[string]string `mapstructure:"themes"`
	Widgets     []Row                        `mapstructure:"widgets"`
}

func (Project) OrderWidgets

func (p Project) OrderWidgets() ([][][]internal.Widget, [][]string)

OrderWidgets add the widgets to a three dimensional slice. First dimension: index of the rows (ir or indexRows). Second dimension: index of the columns (ic or indexColumn). Third dimension: index of the widget.

type RemoteHost

type RemoteHost struct {
	Username string `mapstructure:"username"`
	Address  string `mapstructure:"address"`
}

type Row

type Row struct {
	Row []Column `mapstructure:"row"`
}

Row is constitued of columns

type SearchConsole

type SearchConsole struct {
	Keyfile string `mapstructure:"keyfile"`
	Address string `mapstructure:"address"`
}

type Services

type Services struct {
	GoogleAnalytics     GoogleAnalytics `mapstructure:"google_analytics"`
	GoogleSearchConsole SearchConsole   `mapstructure:"google_search_console"`
	Monitor             Monitor         `mapstructure:"monitor"`
	Github              Github          `mapstructure:"github"`
	TravisCI            TravisCI        `mapstructure:"travis"`
	Feedly              Feedly          `mapstructure:"feedly"`
	Git                 Git             `mapstructure:"git"`
	RemoteHost          RemoteHost      `mapstructure:"remote_host"`
	Localhost           RemoteHost      `mapstructure:"local_host"`
}

type TravisCI

type TravisCI struct {
	Token string `mapstructure:"token"`
}

type Widgets

type Widgets struct {
	Size     string            `mapstructure:"size"`
	Elements []internal.Widget `mapstructure:"elements"`
}

Jump to

Keyboard shortcuts

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