From 37c1de1103659ffe361d578ae0dd9e7e7c25bec8 Mon Sep 17 00:00:00 2001 From: Michael Quigley Date: Fri, 30 Sep 2022 15:23:53 -0400 Subject: [PATCH] zrokloop run (#40) --- cmd/zrokloop/loop.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 cmd/zrokloop/loop.go diff --git a/cmd/zrokloop/loop.go b/cmd/zrokloop/loop.go new file mode 100644 index 00000000..edaa6538 --- /dev/null +++ b/cmd/zrokloop/loop.go @@ -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) { +}