cmd

package
v0.0.0-...-0e3b330 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GPT = &cobra.Command{
	Use: "gpt",
	Run: func(cmd *cobra.Command, args []string) {
		msg, changes := gpt.GenerateCommitMessage(".")
		if !changes {
			clog.Warn("No changes detected")
			return
		}

		clog.Info(msg)
	},
}
View Source
var Root = &cobra.Command{
	Use:  "x",
	Long: color.Template(embed_text.Root),
}
View Source
var Scan = &cobra.Command{
	Use: "scan",
	Run: func(cmd *cobra.Command, args []string) {

		baseDirectory := cfg.BaseDirectory()

		git.Scan(baseDirectory)
		git.VerifyPaths()

		golang.Scan(baseDirectory)
		golang.VerifyPaths()
	},
}
View Source
var Setup = &cobra.Command{
	Use: "setup",
	Run: func(cmd *cobra.Command, args []string) {

		git := shell.Installed("git")
		if git {
			fmt.Println("Git is installed")
		}
	},
}
View Source
var Version = &cobra.Command{
	Use: "version",
	Run: func(cmd *cobra.Command, args []string) {
		clog.Info("{{" + embed_text.Version + "| blue }}")
	},
}

Functions

func Execute

func Execute()

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