cli

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayExpiringMembers

func DisplayExpiringMembers(cfg *Config, before time.Time)

DisplayExpiringMembers Displays users which are due to expire before specified date

func SetConfig

func SetConfig(accessToken string, subDomain string) error

SetConfig Set the config data and save it to file

Types

type Config

type Config struct {
	AccessToken string
	SubDomain   string
}

Config Struct holding the config object

func (*Config) EnsureConfig

func (c *Config) EnsureConfig()

EnsureConfig Make sure the config data can be loaded otherwise panic

func (Config) Save

func (c Config) Save(path string) error

Save Saves the config to the path

Jump to

Keyboard shortcuts

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