Documentation
¶
Index ¶
- Constants
- Variables
- func With(ctx context.Context, store *Store) context.Context
- type KV
- type Store
- func (s *Store) AppName() string
- func (s *Store) AppVersion() string
- func (s *Store) BindFlags(cmd *cobra.Command)
- func (s *Store) Get(key string) (interface{}, error)
- func (s *Store) GetBrowserOptions() browser.Options
- func (s *Store) GetLoggerOptions() logger.Options
- func (s *Store) GetRuntimeOptions() runtime.Options
- func (s *Store) List() []KV
- func (s *Store) Repo() string
- func (s *Store) RepoOwner() string
- func (s *Store) Set(key, val string) error
Constants ¶
View Source
const ( LoggerLevel = "log-level" ExecRuntime = "runtime" ExecKeepCookies = "browser-cookies" ExecWithBrowser = "browser-open" ExecBrowserAddress = "browser-address" ExecWithBrowserHeadless = "browser-headless" ExecProxy = "proxy" ExecUserAgent = "user-agent" BrowserPort = "port" BrowserDetach = "detach" BrowserHeadless = "headless" BrowserUserDir = "user-dir" )
Variables ¶
View Source
var (
ErrInvalidFlag = errors.New("invalid flag")
)
View Source
var Flags = []string{ LoggerLevel, ExecRuntime, ExecKeepCookies, ExecBrowserAddress, ExecWithBrowser, ExecWithBrowserHeadless, ExecProxy, ExecUserAgent, }
View Source
var FlagsStr = strings.Join(Flags, `"|"`)
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AppVersion ¶
func (*Store) GetBrowserOptions ¶
func (*Store) GetLoggerOptions ¶
func (*Store) GetRuntimeOptions ¶
Click to show internal directories.
Click to hide internal directories.