Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Releases: gabe565/gh-profile

v1.3.2

15 Apr 08:15
71a0a26
Compare
Choose a tag to compare

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 to gh-profile

Full Changelog: v1.3.1...v1.3.2

v1.3.1

15 Apr 03:12
e8f20df
Compare
Choose a tag to compare

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

Full Changelog: v1.3.0...v1.3.1

v1.3.0

15 Nov 23:12
b82ac00
Compare
Choose a tag to compare

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

Full Changelog: v1.2.4...v1.2.5

v1.2.4

27 Oct 21:05
904e2af
Compare
Choose a tag to compare

Bug Fixes

  • Fix initial profile not copying existing accounts

Full Changelog: v1.2.3...v1.2.4

v1.2.3

26 Oct 19:43
0139aee
Compare
Choose a tag to compare

Bug Fixes

  • Fix new profiles not showing as activated.

v1.2.2

26 Oct 18:44
3382f4c
Compare
Choose a tag to compare

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

20 Oct 20:25
57bdad1
Compare
Choose a tag to compare

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.
  • 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

20 Oct 03:13
eb1a9fd
Compare
Choose a tag to compare

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.
  • $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

18 Oct 16:08
0cbb68a
Compare
Choose a tag to compare

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

14 Oct 18:38
727b15b
Compare
Choose a tag to compare

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