diff --git a/CHANGELOG.md b/CHANGELOG.md index 18ec589..6af3cf6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [0.0.3] - 2024-08-20 +## [0.0.3+1] - 2024-08-21 + +### Changed +- Commented all debug Printf +- Updated README.md to include a ToDo that should serve as a roadmap + +## [0.0.3] - 2024-08-21 ### Added - Verbose mode with --verbose flag for detailed command execution information diff --git a/README.md b/README.md index c86af0f..71c49f7 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,11 @@ chicle is a platform-agnostic command-line tool for managing multiple Git identi - Version checking functionality - Verbose mode for detailed output +## ToDo +- Configure default behaviors +- Edit existing identities +- Move/copy existing identities + ## Installation ### Using Homebrew @@ -129,12 +134,6 @@ chicle list Alias: `chicle ls` -### Configure default behaviors - -```bash -chicle config --always-global -``` - ### Check chicle version ```bash diff --git a/main.go b/main.go index e71ffaa..a2e4d49 100644 --- a/main.go +++ b/main.go @@ -12,7 +12,7 @@ import ( ) // Version of the chicle tool -const Version = "0.0.3" +const Version = "0.0.3+1" // UserConfig stores the configuration for each Git identity type UserConfig struct { @@ -163,8 +163,8 @@ func switchCommand() *cli.Command { break } } - fmt.Printf("Debug: Inside switch command action, isGlobal: %v\n", isGlobal) - fmt.Printf("Debug: All args: %v\n", os.Args) + //fmt.Printf("Debug: Inside switch command action, isGlobal: %v\n", isGlobal) + //fmt.Printf("Debug: All args: %v\n", os.Args) return switchUser(c, isGlobal) }, } @@ -310,23 +310,23 @@ func switchUser(c *cli.Context, isGlobal bool) error { } alias := args.First() - fmt.Printf("Debug: switchUser called with alias: %s, isGlobal: %v\n", alias, isGlobal) - fmt.Printf("Debug: All args: %v\n", os.Args) - fmt.Printf("Debug: Global configs: %+v\n", configs.Global) - fmt.Printf("Debug: Local configs: %+v\n", configs.Local) + //fmt.Printf("Debug: switchUser called with alias: %s, isGlobal: %v\n", alias, isGlobal) + //fmt.Printf("Debug: All args: %v\n", os.Args) + //fmt.Printf("Debug: Global configs: %+v\n", configs.Global) + //fmt.Printf("Debug: Local configs: %+v\n", configs.Local) var config UserConfig var ok bool if isGlobal { - fmt.Println("Debug: Checking global configs") + //fmt.Println("Debug: Checking global configs") config, ok = configs.Global[alias] } else { - fmt.Println("Debug: Checking local configs") + //fmt.Println("Debug: Checking local configs") config, ok = configs.Local[alias] } - fmt.Printf("Debug: Config found: %v, Config: %+v\n", ok, config) + //fmt.Printf("Debug: Config found: %v, Config: %+v\n", ok, config) if !ok { scopeType := map[bool]string{true: "global", false: "local"}[isGlobal]