Repository navigation
Expand file tree
/
Copy pathsdt.go
More file actions
63 lines (58 loc) · 1.77 KB
/
Copy pathsdt.go
File metadata and controls
63 lines (58 loc) · 1.77 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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/collections"
"github.com/ScreenStaring/shopify-dev-tools/cmd/companies"
"github.com/ScreenStaring/shopify-dev-tools/cmd/customers"
"github.com/ScreenStaring/shopify-dev-tools/cmd/draftorders"
"github.com/ScreenStaring/shopify-dev-tools/cmd/gql"
"github.com/ScreenStaring/shopify-dev-tools/cmd/inventory"
"github.com/ScreenStaring/shopify-dev-tools/cmd/locations"
"github.com/ScreenStaring/shopify-dev-tools/cmd/metafields"
"github.com/ScreenStaring/shopify-dev-tools/cmd/metaobjects"
"github.com/ScreenStaring/shopify-dev-tools/cmd/orders"
"github.com/ScreenStaring/shopify-dev-tools/cmd/products"
"github.com/ScreenStaring/shopify-dev-tools/cmd/purchaseorders"
"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.1.5"
func main() {
app := &cli.App{
Name: "sdt",
Usage: "Shopify Development Tools",
Version: version,
UseShortOptionHandling: true,
Commands: []*cli.Command{
&admin.Cmd,
&charges.Cmd,
&collections.Cmd,
&companies.Cmd,
&draftorders.Cmd,
&inventory.Cmd,
&locations.Cmd,
&metafields.Cmd,
&metaobjects.Cmd,
&orders.Cmd,
&products.Cmd,
&purchaseorders.Cmd,
&gql.Cmd,
&shop.Cmd,
&customers.Cmd,
&scripttags.Cmd,
&themes.Cmd,
&webhooks.Cmd,
},
}
err := app.Run(os.Args)
if err != nil {
fmt.Fprintln(os.Stderr, err.Error())
os.Exit(1)
}
}