Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ThemeCmd is the main entry point to the theme kit command line interface. ThemeCmd = &cobra.Command{ Use: "theme", Short: "Theme Kit is a tool kit for manipulating shopify themes", Long: `Theme Kit is a tool kit for manipulating shopify themes Theme Kit is a fast and cross platform tool that enables you to build shopify themes with ease. Complete documentation is available at https://shopify.dev/tools/theme-kit.`, SilenceUsage: true, SilenceErrors: true, PersistentPreRun: func(cmd *cobra.Command, args []string) { if !flags.DisableUpdateNotifier && release.IsUpdateAvailable() { colors.ColorStdOut.Print(colors.Yellow("An update for Themekit is available. To update please run `theme update`")) } }, PersistentPostRun: func(cmd *cobra.Command, args []string) { if flags.ThemeID == "" { flags.ThemeID = "1337" } cmdutil.ForDefaultClient(flags, args, func(ctx *cmdutil.Ctx) error { if !flags.DisableThemeKitAccessNotifier && !util.IsThemeAccessPassword(ctx.Env.Password) { colors.ColorStdOut.Print(colors.Yellow("* Build themes without private apps. Learn more about the Theme Access app: https://shopify.dev/themes/tools/theme-access")) } return nil }) }, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.