-
Notifications
You must be signed in to change notification settings - Fork 1
/
cmd_cert.go
40 lines (33 loc) · 818 Bytes
/
cmd_cert.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright 2015 Keybase, Inc. All rights reserved. Use of
// this source code is governed by the included BSD license.
package client
import (
"github.com/keybase/cli"
"github.com/keybase/client/go/libcmdline"
"github.com/keybase/client/go/libkb"
)
type CmdCert struct {
}
func (c *CmdCert) ParseArgv(ctx *cli.Context) error {
return nil
}
func (c *CmdCert) Run() error {
_, err := GlobUI.Println(libkb.BundledCAs["api.keybase.io"])
return err
}
func NewCmdCert(cl *libcmdline.CommandLine) cli.Command {
return cli.Command{
Name: "cert",
Usage: "Print the CA cert for api.keybase.io",
Action: func(c *cli.Context) {
cl.ChooseCommand(&CmdCert{}, "cert", c)
},
Flags: []cli.Flag{},
}
}
func (c *CmdCert) GetUsage() libkb.Usage {
return libkb.Usage{
Config: false,
API: false,
}
}