mirror of
https://github.com/openziti/zrok.git
synced 2024-11-26 01:54:09 +01:00
zrokloop run (#40)
This commit is contained in:
parent
779eb8fb24
commit
37c1de1103
25
cmd/zrokloop/loop.go
Normal file
25
cmd/zrokloop/loop.go
Normal file
@ -0,0 +1,25 @@
|
||||
package main
|
||||
|
||||
import "github.com/spf13/cobra"
|
||||
|
||||
func init() {
|
||||
rootCmd.AddCommand(newRun().cmd)
|
||||
}
|
||||
|
||||
type run struct {
|
||||
cmd *cobra.Command
|
||||
}
|
||||
|
||||
func newRun() *run {
|
||||
cmd := &cobra.Command{
|
||||
Use: "run",
|
||||
Short: "Start a loop agent",
|
||||
Args: cobra.ExactArgs(0),
|
||||
}
|
||||
r := &run{cmd: cmd}
|
||||
cmd.Run = r.run
|
||||
return r
|
||||
}
|
||||
|
||||
func (r *run) run(_ *cobra.Command, _ []string) {
|
||||
}
|
Loading…
Reference in New Issue
Block a user