Start get facet command
This commit is contained in:
parent
dbe71e2063
commit
d30506839a
13
cmd/eia-client/cmd/get/get.go
Normal file
13
cmd/eia-client/cmd/get/get.go
Normal 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)
|
||||||
|
}
|
18
cmd/eia-client/cmd/get/get_facet.go
Normal file
18
cmd/eia-client/cmd/get/get_facet.go
Normal 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) {
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user