cfc

module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MIT

README

cfc

cfc means config customize.

It uses viper internal encoding package. Thanks for spf13.

But also you can use cfctl to get value in command line or shell scripts...

import package

import "github.com/jaronnie/cfc"

how to use cfc package

_example

download cfctl

go install github.com/jaronnie/cfc/cmd/cfctl@latest

how to use cfctl

cfctl get name -f test.toml

cfctl set_string name value -f test.toml

# default config file type is toml, if others please use -p to specify config file type
cat test.toml | cfctl get name

if you want to get more about cfctl, click here

Directories

Path Synopsis
cmd
cfctl command
hcl
ini

Jump to

Keyboard shortcuts

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