github_config_c

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Root = &cobra.Command{
	Use:     "config",
	Aliases: []string{"conf", "cfg"},
	Run: func(cmd *cobra.Command, args []string) {
		configuration := cfg.Configuration()
		if configuration.Environment["github_default_clone_directory"] == "" {
			curDir := shell.CurrentDirectory()
			clog.UnderlineF("Set current directory as default clone directory?")
			clog.Infol("This will set the current directory as the default clone directory for GitHub repositories.",
				"This can be changed later in the configuration file.", color.String(curDir, "blue"), "")

			if prompt.Confirm("Set current directory") {

			}
		}

		if len(configuration.GitHub) == 0 {
			GitHubConfiguration()
		}

		for account, _ := range configuration.GitHub {
			clog.Info("{{ Account: | green }} " + account)
		}
	},
}

Functions

func GitHubConfiguration

func GitHubConfiguration()

Types

This section is empty.

Jump to

Keyboard shortcuts

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