cmd

package
v0.0.0-...-fafbf5e Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Run: func(cmd *cobra.Command, args []string) {
		if o.optApiDomain != "" && o.optWebDomain != "" {
			server()
		} else if o.optWebDomain != "" {
			fmt.Printf("Need --api-domain flag\n")
		} else if o.optApiDomain != "" {
			fmt.Printf("Need --page-domain flag\n")
		} else {
			fmt.Printf("Ogpify %s\n", lib.Version())
			fmt.Printf("✨ Thank you for installing Ogpify!!\n")
			fmt.Printf("Please run the help command for usage. \nRun:\n")
			color.New(color.Bold).Printf("\t" + color.BlueString("$ ") + "ogpify --help\n")
		}
	},
}

Functions

This section is empty.

Types

type CmdOptions

type CmdOptions struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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