cmd

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2017 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package cmd is the package that handled the command line commands. This is mostly for internal use.

Index

Constants

This section is empty.

Variables

View Source
var 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.github.io/themekit/`,
	SilenceUsage:  true,
	SilenceErrors: true,
	PersistentPreRun: func(cmd *cobra.Command, args []string) {
		if !noUpdateNotifier && kit.IsNewUpdateAvailable() {
			stdOut.Print(yellow("An update for Themekit is available. To update please run `theme update`"))
		}
		arbiter.setFlagConfig()
	},
	PersistentPostRun: func(cmd *cobra.Command, args []string) {
		arbiter.progress.Stop()
	},
}

ThemeCmd is the main entry point to the theme kit command line interface.

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