cmd

package
v0.0.0-...-8bf7f5a Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const CONFIG_DEFAULT_PATH = "config.json"

Variables

This section is empty.

Functions

func NewApp

func NewApp() cli.App

func OpenConfig

func OpenConfig(cCtx cli.Context, fallbackDefaults bool) (config.Config, error)

OpenConfig reads a config file from a path "config" taken from cli.Context. If fallbackDefaults is true, it returns a default config if no config path is specified by the user AND if the default config location does not exist.

Otherwise, if a config path is specified but does not exist, it returns an error.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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