cmd

package
v0.0.0-...-e4d07a6 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Index

Constants

This section is empty.

Variables

View Source
var MalformedManifestError = errors.New("Manifest is malformed")

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func NeedAuth

func NeedAuth(cmd *cobra.Command, args []string)

func RefreshAuth

func RefreshAuth() error

Types

type Config

type Config struct {
	Token      string `json:"token"`
	CacheDir   string `json:"cache_dir"`
	ServerBase string `json:"server_base"`
}

func LoadConfig

func LoadConfig() (*Config, error)

func (*Config) Save

func (c *Config) Save() error

type Manifest

type Manifest map[string]string

func LoadManifest

func LoadManifest() (Manifest, error)

func (*Manifest) Save

func (m *Manifest) Save() error

Jump to

Keyboard shortcuts

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