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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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