grim/hgkeeper

c27ecd0c7904
Parents b6e0150db76d
Children f2dd4c2888e2
Add environment variables for the setup commands options
--- a/setup/command.go Thu Sep 12 22:45:58 2019 -0500
+++ b/setup/command.go Thu Sep 12 23:16:59 2019 -0500
@@ -16,8 +16,8 @@
)
type Command struct {
- AdminUsername string `kong:"flag,name='admin-username',help='the name of the initial admin user',required='true'"`
- AdminSSHPubkey string `kong:"flag,name='admin-pubkey',help='the path to the ssh pubkey to use for the admin',required='true',type='existingfile'"`
+ AdminUsername string `kong:"flag,name='admin-username',env='HGK_ADMIN_USERNAME',help='the name of the initial admin user',required='true'"`
+ AdminSSHPubkey string `kong:"flag,name='admin-pubkey',env='HGK_ADMIN_PUBKEY',help='the path to the ssh pubkey to use for the admin',required='true',type='existingfile'"`
}
var (