2025-10-31 05:02:29 +00:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// collectCmd represents the collect command
|
|
|
|
|
var collectCmd = &cobra.Command{
|
2025-10-31 21:35:53 +00:00
|
|
|
Use: "collect",
|
2025-11-03 16:31:26 +00:00
|
|
|
Short: "Collect a resource from a URI.",
|
|
|
|
|
Long: `Collect a resource from a URI and store it in a DataNode.`,
|
2025-10-31 05:02:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() {
|
2025-11-02 00:59:46 +00:00
|
|
|
RootCmd.AddCommand(collectCmd)
|
2025-10-31 05:02:29 +00:00
|
|
|
}
|
2025-11-03 16:31:26 +00:00
|
|
|
func NewCollectCmd() *cobra.Command {
|
|
|
|
|
return collectCmd
|
|
|
|
|
}
|