Start get facet command

This commit is contained in:
Ryan McGuire 2024-11-26 12:16:40 -05:00
parent dbe71e2063
commit d30506839a
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,13 @@
package get
import "github.com/spf13/cobra"
var GetCmd = &cobra.Command{
Use: "get",
Aliases: []string{"ls", "l"},
Short: "Commands for getting metadata",
}
func init() {
GetCmd.AddCommand(GetFacetsCmd)
}

View File

@ -0,0 +1,18 @@
package get
import (
"github.com/spf13/cobra"
"gitea.libretechconsulting.com/50W/eia-api-go/cmd/eia-client/internal/util"
)
var GetFacetsCmd = &cobra.Command{
Use: "facet route facet",
Args: cobra.ExactArgs(2),
Short: "Describe facet for given API route",
ValidArgsFunction: util.CompleteRouteOrFacet,
Run: RunGetFacetCmd,
}
func RunGetFacetCmd(cmd *cobra.Command, args []string) {
}