aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorishaan <contact@ishaan.cc>2026-07-19 14:21:13 +0530
committerishaan <contact@ishaan.cc>2026-07-19 14:21:13 +0530
commitd6449a232e6bd9eb46132c7403a05ac1a756b619 (patch)
treea88c144f54557306caf69ed739de15857fc898d4 /cmd
parent8a5de371fccb89635bc1a624d8b1aca52aa18da4 (diff)
feat: discover SSH keys from remote services (eg. bob@github fetches bob's keys from GitHub)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/eno/cobra.go3
-rw-r--r--cmd/eno/cobra_ssh.go6
2 files changed, 5 insertions, 4 deletions
diff --git a/cmd/eno/cobra.go b/cmd/eno/cobra.go
index 4f37bf1..93cba8b 100644
--- a/cmd/eno/cobra.go
+++ b/cmd/eno/cobra.go
@@ -263,6 +263,7 @@ func init() {
newCmd.Flags().Bool("ssh", false, "use your ssh for auth")
sshCmd.AddCommand(sshInitCmd)
+ configCmd.AddCommand(configSetCmd, configGetCmd, configListCmd, configRemoveCmd)
- cobraCmd.AddCommand(encryptCmd, decryptCmd, initCmd, newCmd, editCmd, sshCmd)
+ cobraCmd.AddCommand(encryptCmd, decryptCmd, initCmd, newCmd, editCmd, sshCmd, configCmd)
}
diff --git a/cmd/eno/cobra_ssh.go b/cmd/eno/cobra_ssh.go
index f219cfb..e923a1d 100644
--- a/cmd/eno/cobra_ssh.go
+++ b/cmd/eno/cobra_ssh.go
@@ -151,17 +151,17 @@ var sshInitCmd = &cobra.Command{
os.Exit(1)
}
- if err := config.Update("DefaultSSHPrivPath", privateKeyPath); err != nil {
+ if err := config.Set("DEFAULT_SSH_PRIV", privateKeyPath); err != nil {
clear(privKeyBytes)
cmd.PrintErrln(err)
os.Exit(1)
}
- if err := config.Update("DefaultSSHPubPath", publicKeyPath); err != nil {
+ if err := config.Set("DEFAULT_SSH_PUB", publicKeyPath); err != nil {
clear(privKeyBytes)
cmd.PrintErrln(err)
os.Exit(1)
}
- if err := config.Update("SSHInitialized", true); err != nil {
+ if err := config.Set("SSH_INIT", "true"); err != nil {
clear(privKeyBytes)
cmd.PrintErrln(err)
os.Exit(1)