Stubs out passing args to keyring creation
This commit is contained in:
parent
ea383b7a34
commit
d333acfdbd
@ -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
7
keyring/keyring.go
Normal 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)
|
||||
}
|
Loading…
Reference in New Issue
Block a user