2025-10-31 05:02:29 +00:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// collectCmd represents the collect command
|
2025-11-14 10:36:35 +00:00
|
|
|
var collectCmd = NewCollectCmd()
|
2025-10-31 05:02:29 +00:00
|
|
|
|
|
|
|
|
func init() {
|
2025-11-14 10:36:35 +00:00
|
|
|
RootCmd.AddCommand(GetCollectCmd())
|
2025-10-31 05:02:29 +00:00
|
|
|
}
|
2025-11-03 16:31:26 +00:00
|
|
|
func NewCollectCmd() *cobra.Command {
|
2025-11-14 10:36:35 +00:00
|
|
|
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 {
|
2025-11-03 16:31:26 +00:00
|
|
|
return collectCmd
|
|
|
|
|
}
|