Borg/cmd/collect.go

24 lines
443 B
Go
Raw Permalink Normal View History

package cmd
import (
"github.com/spf13/cobra"
)
// collectCmd represents the collect command
var collectCmd = NewCollectCmd()
func init() {
RootCmd.AddCommand(GetCollectCmd())
}
func NewCollectCmd() *cobra.Command {
return &cobra.Command{
Use: "collect",
Short: "Collect a resource from a URI.",
Long: `Collect a resource from a URI and store it in a DataNode.`,
}
}
func GetCollectCmd() *cobra.Command {
return collectCmd
}