Do not export symbols from the main package
main packages are not importable; see the discussion at https://github.com/golang/go/issues/4210 Signed-off-by: Burcu Dogan <jbd@google.com>
This commit is contained in:
parent
d7c5849537
commit
40086bd92b
4 changed files with 23 additions and 23 deletions
10
ctr/main.go
10
ctr/main.go
|
@ -9,13 +9,13 @@ import (
|
|||
"github.com/docker/containerd"
|
||||
)
|
||||
|
||||
const Usage = `High performance container daemon cli`
|
||||
const usage = `High performance container daemon cli`
|
||||
|
||||
func main() {
|
||||
app := cli.NewApp()
|
||||
app.Name = "ctr"
|
||||
app.Version = containerd.Version
|
||||
app.Usage = Usage
|
||||
app.Usage = usage
|
||||
app.Authors = []cli.Author{
|
||||
{
|
||||
Name: "@crosbymichael",
|
||||
|
@ -34,9 +34,9 @@ func main() {
|
|||
},
|
||||
}
|
||||
app.Commands = []cli.Command{
|
||||
CheckpointCommand,
|
||||
ContainersCommand,
|
||||
EventsCommand,
|
||||
checkpointCommand,
|
||||
containersCommand,
|
||||
eventsCommand,
|
||||
}
|
||||
app.Before = func(context *cli.Context) error {
|
||||
if context.GlobalBool("debug") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue