akash-network / akt Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Add functionality in config/
for initializing, loading, editing configuration.
Configuration should store structures defined in config/types.go
. It should be serialized as YAML
, stored in the configuration directory as config.yml
.
Configuration is stored in a directory. There can be multiple directories.
There are a number of ways of finding a directory:
~/.akt
)func Load(opts LoadOptions) Config
Example Usage:
cfg, err := config.Load(config.DefaultLoadOptions())
LoadOptions:
type LoadOptions struct {
Path string // default: empty
Global bool // default: true
}
Global
is true, include the global config directory (~/.akt
), if available.Path
is set, use the directory at Path
as local configuration directory.Path
is not set:
$PWD/.akt
is available."$PWD/.git"
exists.Commands to create, list accounts.
akt account create <name>
Create a new account.
Options:
Flag | Description | Default |
---|---|---|
--[no-]global |
Create a global account, or not. | --global |
--type <type> |
Use the given keyring backend | test |
akt account list
List current accounts.
Create akt config
command to display current configuration. This command should use the library created for #1.
Options:
--confdir <directory>
use an explicit directory instead of auto-discovered path.--[no-]global
include global ~/.akt
configuration (defaults to --global
)Add ability to import known networks.
Include import in:
akt init
command.akt network import
command.Network create, list commands.
akt network create <name>
Creates a new network.
Options:
Name | Defult | Required |
---|---|---|
--chain-id <id> |
Y | |
--endpoint |
Y | |
--[no-]global |
true | N |
akt network list
Lists given networks.
Command to initialize configuration.
akt init [directory]
.
[directory]/.akt
[directory]
defaults to $PWD
;--global
flag will initialize the global configuration at ~/.akt
--confdir <directory>
requires no [directory]
positional argument and will use the directory given to the argument.A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.