Skip to content

baorv/shopify-cloner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shopify-cloner

Tools to working with Shopify

Installation

go get github.com/baorv/shopify-cloner

Commands

Clone Shopify theme to local

shopify-cloner theme:clone -t {theme id} -a {access token} -s {shop name} -v

Get all available themes in store

shopify-cloner theme:list -a {access token} -s {shop name} -v

Add new commands

Create new file in internal or any where you want

package theme

import (
	"github.com/baorv/shopify-cloner/utils/parser"
)

type SomeCommand struct {
	Theme  int    `short:"t" long:"theme" description:"Theme ID you want to clone" required:"true"`
    Output string `short:"o" long:"output" description:"Output zip file you want to export"`
    Zip    bool   `short:"c" long:"compress" description:"Compress all assets to zip file"`
}
func (c *SomeCommand) Execute(args []string) error {
	return nil
}
var some SomeCommand

func init() {
	parser.Parser.AddCommand(
		"some",
		"SomeCommand description",
		"Long someCommand description",
		&some)
}

Todo

License

This project is licensed under the MIT License.

About

Tools to working with Shopify

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published