Stubs out passing args to keyring creation

This commit is contained in:
Stephen McQuay 2018-02-25 01:42:37 -08:00
parent ea383b7a34
commit d333acfdbd
Signed by: sm
GPG Key ID: 4E4B72F479BA3CE5
2 changed files with 12 additions and 2 deletions

View File

@ -4,6 +4,8 @@ import (
"bufio"
"fmt"
"os"
"mcquay.me/pm/keyring"
)
const usage = `pm: simple, cross-platform system package manager
@ -61,8 +63,9 @@ func main() {
fatalf("%v\n", err)
}
fmt.Printf("name: %q, email: %q\n", name, email)
fatalf("NYI\n")
if err := keyring.NewKeyPair(root, name, email); err != nil {
fatalf("creating keypair: %v\n", err)
}
default:
fatalf("unknown keyring subcommand: %q\n\nusage: %v", sub, keyUsage)
}

7
keyring/keyring.go Normal file
View File

@ -0,0 +1,7 @@
package keyring
import "fmt"
func NewKeyPair(root, name, email string) error {
return fmt.Errorf("NYI: %v, %v, %v", root, name, email)
}