diff --git a/cmd/eia-client/cmd/get/get.go b/cmd/eia-client/cmd/get/get.go new file mode 100644 index 0000000..941c16e --- /dev/null +++ b/cmd/eia-client/cmd/get/get.go @@ -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) +} diff --git a/cmd/eia-client/cmd/get/get_facet.go b/cmd/eia-client/cmd/get/get_facet.go new file mode 100644 index 0000000..2915e0e --- /dev/null +++ b/cmd/eia-client/cmd/get/get_facet.go @@ -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) { +}