forked from keybase/client
/
cmd_ctl_start.go
40 lines (32 loc) · 879 Bytes
/
cmd_ctl_start.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.
// +build !darwin
package client
import (
"github.com/keybase/cli"
"github.com/keybase/client/go/libcmdline"
"github.com/keybase/client/go/libkb"
)
func NewCmdCtlStart(cl *libcmdline.CommandLine, g *libkb.GlobalContext) cli.Command {
return cli.Command{
Name: "start",
Usage: "Start the background keybase service",
Action: func(c *cli.Context) {
cl.ChooseCommand(&CmdCtlStart{libkb.NewContextified(g)}, "start", c)
cl.SetForkCmd(libcmdline.ForceFork)
cl.SetNoStandalone()
},
}
}
type CmdCtlStart struct {
libkb.Contextified
}
func (s *CmdCtlStart) ParseArgv(ctx *cli.Context) error {
return nil
}
func (s *CmdCtlStart) Run() (err error) {
return nil
}
func (s *CmdCtlStart) GetUsage() libkb.Usage {
return libkb.Usage{}
}