This repository has been archived by the owner on Feb 10, 2024. It is now read-only.
Releases: gabe565/gh-profile
Releases · gabe565/gh-profile
v1.3.2
New Features
- 7b916ba 📝 Group commands into read and write groups
- c0f42f7 ✨ Add shell completions (Unfortunately, these only work when using
gh-profile
as a standalone binary) - f9f7182 ✨ Add
--version
flag
Changes
- 749f164 🚚 Rename usage name from
profile
togh-profile
Full Changelog: v1.3.1...v1.3.2
v1.3.1
Bug Fixes
🎉 Windows path issues have been fixed!
@DariuszPorowski improved discovery of the gh config directory dir by replacing custom logic with cli/go-gh. This change fixes gh-profile on Windows and makes it much easier to support future changes to this path. (#24)
Also, thanks to @calloc134 for locating the gh config directory on Windows, and for giving some good documentation suggestions.
Dependencies
- ⬆️ Update actions/setup-go action to v4
- ⬆️ Update go to 1.20 (#16)
- ⬆️ Update module github.com/jedib0t/go-pretty/v6 to v6.4.6 (#18)
- ⬆️ Update module github.com/spf13/cobra to v1.7.0 (#23)
- ⬆️ Update module github.com/spf13/viper to v1.15.0 (#14)
Changes
- ✨ Renovate has been added for dependency upgrades (#11)
- 👷 GoReleaser has been added to improve release automation (e9754bb)
New Contributors
- @DariuszPorowski made their first contribution in #24
Full Changelog: v1.3.0...v1.3.1
v1.3.0
New Features
- Switch back to the previous profile by passing
-
.
Updates
- Bump github.com/spf13/cobra from 1.6.0 to 1.6.1.
- Bump github.com/spf13/viper from 1.13.0 to 1.14.0.
- Bump github.com/jedib0t/go-pretty/v6 from 6.4.0 to 6.4.2.
New Contributors
- @dependabot made their first contribution in #5
Full Changelog: v1.2.4...v1.2.5
v1.2.4
v1.2.3
v1.2.2
Changes
- Only copy accounts into new profile if it is the first.
- Show "No profiles found" error more often.
Full Changelog: v1.2.1...v1.2.2
v1.2.1
Bug Fixes
- Fix local dir
.envrc
duplicated lines when switching local profile multiple times.- Existing duplicates will be removed when
gh profile switch -l
is run.
- Existing duplicates will be removed when
- Use
$HOME
or$XDG_CONFIG_DIR
if set when generating local dir.envrc
. (Suggested by @yermulnik in #3) - Tweak
.envrc
permissions. (Suggested by @yermulnik in #3) - Check for errors before logging "Activating local dir profile" to match other commands.
Full Changelog: v1.2.0...v1.2.1
v1.2.0
New Features
- Profiles are now configurable per-directory! (Suggested by @justinmchase in #3)
- To switch to a new profile in the current directory, install direnv, then run
gh profile switch --local-dir
. - A local env override will be placed in
.envrc
which will be loaded by direnv.
- To switch to a new profile in the current directory, install direnv, then run
$XDG_CONFIG_HOME
is now used to find the gh cli's config dir. (Suggested by @yermulnik)gh profile show
will exit silently if an active profile is not found.
Changes
- A "default" profile is no longer created during initial setup. Instead, the current config is copied into the initial profile.
- Profile name is appended to error messages.
- The "profile already active" log is now info level instead of warning.
- Output prettier error if certain commands are run and no profiles exist.
- Usage docs have been cleaned up.
Full Changelog: v1.1.0...v1.2.0
v1.1.0
New Features
- Added
gh profile show
subcommand that prints the active profile name. (Suggested by @justinmchase, #2)
Changes
- Cleaned up usage documentation
- Internal code refactoring to add better support for tests
Bug Fixes
- Fixed error capitalization working on bytes instead of runes (Suggested by @yermulnik)
Full Changelog: v1.0.1...v1.1.0
v1.0.1
New Features
- Add rename subcommand
- Use
GH_CONFIG_DIR
for config directory if set
Changes
- Tweak
list
/ls
output. Active profile now has a green check and is bold. - Tweak prompt messages
Bug Fixes
- Output some logs before checking for errors
Full Changelog: v1.0.0...v1.0.1