Update crawl command to improve URI handling and provide clearer instructions

This commit is contained in:
Alex Lovell-Troy 2024-07-02 16:55:17 -04:00
parent afe84f6129
commit 09eb48a241
No known key found for this signature in database

View file

@ -12,7 +12,11 @@ import (
) )
var crawlCmd = &cobra.Command{ var crawlCmd = &cobra.Command{
Use: "crawl [uri] e.g. magellan crawl https://bmc.example.com", Use: "crawl [uri]",
Long: "Crawl a single BMC for inventory information\n" +
"\n" +
"Example:\n" +
" magellan crawl https://bmc.example.com",
Short: "Crawl a single BMC for inventory information", Short: "Crawl a single BMC for inventory information",
Args: func(cmd *cobra.Command, args []string) error { Args: func(cmd *cobra.Command, args []string) error {
// Validate that the only argument is a valid URI // Validate that the only argument is a valid URI