cmd

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 27 Imported by: 1

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL