-
Notifications
You must be signed in to change notification settings - Fork 1
/
sdt.go
46 lines (41 loc) · 1.12 KB
/
sdt.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package main
import (
"fmt"
"os"
"github.com/ScreenStaring/shopify-dev-tools/cmd/admin"
"github.com/ScreenStaring/shopify-dev-tools/cmd/charges"
"github.com/ScreenStaring/shopify-dev-tools/cmd/gql"
"github.com/ScreenStaring/shopify-dev-tools/cmd/metafields"
"github.com/ScreenStaring/shopify-dev-tools/cmd/orders"
"github.com/ScreenStaring/shopify-dev-tools/cmd/products"
"github.com/ScreenStaring/shopify-dev-tools/cmd/scripttags"
"github.com/ScreenStaring/shopify-dev-tools/cmd/shop"
"github.com/ScreenStaring/shopify-dev-tools/cmd/themes"
"github.com/ScreenStaring/shopify-dev-tools/cmd/webhooks"
"github.com/urfave/cli/v2"
)
const version = "0.0.5"
func main() {
app := &cli.App{
Name: "sdt",
Usage: "Shopify Development Tools",
Version: version,
UseShortOptionHandling: true,
Commands: []*cli.Command{
&admin.Cmd,
&charges.Cmd,
&metafields.Cmd,
&orders.Cmd,
&products.Cmd,
&gql.Cmd,
&shop.Cmd,
&scripttags.Cmd,
&themes.Cmd,
&webhooks.Cmd,
},
}
err := app.Run(os.Args)
if err != nil {
fmt.Fprintln(os.Stderr, err.Error())
}
}