cmd

package
v0.0.0-...-1568502 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: MIT Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultHastebinUrl = "https://hastebin.com/"
View Source
const DefaultLogLines = 200

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute calls cobra to handle cli commands

func RelocateConfiguration

func RelocateConfiguration() error

We've gone through a couple of iterations of where the configuration is stored. This helpful little function will look through the three areas it might have ended up, and return it.

We only run this if the configuration flag for the instance is not actually passed in via the command line. Once found, the configuration is moved into the expected default location. Only errors are returned from this function, you can safely assume that after running this the configuration can be found in the correct default location.

Types

This section is empty.

Jump to

Keyboard shortcuts

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