Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
burrow
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hang Yu
burrow
Commits
33ff51d6
Commit
33ff51d6
authored
6 years ago
by
Sean Young
Browse files
Options
Downloads
Patches
Plain Diff
Allow keys directory to be specified for burrow configure
Signed-off-by:
Sean Young
<
sean.young@monax.io
>
parent
f593f649
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmd/burrow/commands/configure.go
+10
-2
10 additions, 2 deletions
cmd/burrow/commands/configure.go
with
10 additions
and
2 deletions
cmd/burrow/commands/configure.go
+
10
−
2
View file @
33ff51d6
...
...
@@ -47,6 +47,8 @@ func Configure(output Output) func(cmd *cli.Cmd) {
keysUrlOpt
:=
cmd
.
StringOpt
(
"k keys-url"
,
""
,
fmt
.
Sprintf
(
"Provide keys GRPC address, default: %s"
,
keys
.
DefaultKeysConfig
()
.
RemoteAddress
))
keysDir
:=
cmd
.
StringOpt
(
"keysdir"
,
""
,
"Directory where keys are stored"
)
configOpt
:=
cmd
.
StringOpt
(
"c base-config"
,
""
,
"Use the a specified burrow config file as a base"
)
genesisDocOpt
:=
cmd
.
StringOpt
(
"g genesis-doc"
,
""
,
"GenesisDoc in JSON or TOML to embed in config"
)
...
...
@@ -83,10 +85,12 @@ func Configure(output Output) func(cmd *cli.Cmd) {
chainNameOpt
:=
cmd
.
StringOpt
(
"n chain-name"
,
""
,
"Default chain name"
)
cmd
.
Spec
=
"[--keys-url=<keys URL> | (--generate-keys=<secret keys files> [--keys-template=<text template for key>])] "
+
cmd
.
Spec
=
"[--keys-url=<keys URL> | ([--keysdir=<keys directory>] "
+
"[--generate-keys=<secret keys files> [--keys-template=<text template for key>]])] "
+
"[--config-template-in=<text template> --config-template-out=<output file>] "
+
"[--genesis-spec=<GenesisSpec file> | --genesis-doc=<GenesisDoc file>] "
+
"[--separate-genesis-doc=<genesis JSON file>] [--chain-name] [--json] "
+
"[--keysdir=<keys directory>] "
+
"[--logging=<logging program>] [--describe-logging] [--debug]"
cmd
.
Action
=
func
()
{
...
...
@@ -126,7 +130,11 @@ func Configure(output Output) func(cmd *cli.Cmd) {
if
err
!=
nil
{
output
.
Fatalf
(
"Could not read GenesisSpec: %v"
,
err
)
}
keyStore
:=
keys
.
NewKeyStore
(
conf
.
Keys
.
KeysDirectory
,
conf
.
Keys
.
AllowBadFilePermissions
,
logging
.
NewNoopLogger
())
dir
:=
conf
.
Keys
.
KeysDirectory
if
*
keysDir
!=
""
{
dir
=
*
keysDir
}
keyStore
:=
keys
.
NewKeyStore
(
dir
,
conf
.
Keys
.
AllowBadFilePermissions
,
logging
.
NewNoopLogger
())
if
*
generateKeysOpt
!=
""
{
keyClient
:=
keys
.
NewLocalKeyClient
(
keyStore
,
logging
.
NewNoopLogger
())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment