Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
pjaudiomv committed Jun 28, 2024
1 parent a59238e commit 7ab6284
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 12 deletions.
12 changes: 8 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
## v0.1.1 (June 28, 2024)
* Replaced regular expressions with the `ini` package for extracting profiles from AWS config files.
* Fixed an issue where extra spaces between the "profile" keyword and the profile name could prevent the profile from being set.

## v0.1.0 (May 2, 2024)
* Increase zsh autocompletion compatibilty.
* Increase zsh autocompletion compatibility.

## v0.0.9 (April 4, 2024)
* Fixes issue with help command shorthand flag `-h`. [#20] thanks @Masamerc
* Fixes issue with help command shorthand flag `-h`. [#20] thanks, @Masamerc

## v0.0.8 (December 23, 2023)
* Added autocomplete script to install.
Expand All @@ -14,7 +18,7 @@
* Refactored codebase.

## v0.0.5 (October 6, 2023)
* Added support for passing arbitrary profile names as arguments. [#4] thanks @withakay
* Added support for passing arbitrary profile names as arguments. [#4] thanks, @withakay
* Added `awsd list` command to simply list all profiles.

## v0.0.4 (October 4, 2023)
Expand All @@ -24,7 +28,7 @@
* Added additional error checking.

## v0.0.2 (May 27, 2022)
* Added ability to search AWS profiles. [#4] thanks @M1kep
* Added ability to search AWS profiles. [#4] thanks, @M1kep

## v0.0.1 (November 30, 2021)
* Initial Release
30 changes: 24 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,28 @@
# awsd - AWS Profile Switcher in Go

---

<img src="assets/awsd.png" width="200">

awsd is a command-line utility that allows you to easily switch between AWS Profiles
awsd is a command-line utility that allows you to easily switch between AWS Profiles.

<img src="assets/demo.gif" width="500">

## Table of Contents

- [Installation](#installation)
- [Homebrew](#homebrew)
- [Makefile](#makefile)
- [To Finish Installation](#to-finish-installation)
- [Usage](#usage)
- [Switching AWS Profiles](#switching-aws-profiles)
- [Persist Profile across new shells](#persist-profile-across-new-shells)
- [Show your AWS Profile in your shell prompt](#show-your-aws-profile-in-your-shell-prompt)
- [Add autocompletion](#add-autocompletion)
- [TL;DR (full config example)](#tldr-full-config-example)
- [Contributing](#contributing)
- [License](#license)

## Installation

Make sure you have Go installed. You can download it from [here](https://golang.org/dl/).
Expand Down Expand Up @@ -49,16 +66,17 @@ To switch between different profiles files using the menu, use the following com
awsd
```

This command will display a list of available profiles files in your `~/aws/config` file. Select the one you want to use.
This command will display a list of available profiles files in your `~/.aws/config` file or from `AWS_CONFIG_FILE`
if you have that set. It expects for you to have named profiles in your AWS config file. Select the one you want to use.

## Persist Profile across new shells
### Persist Profile across new shells
To persist the set profile when you open new terminal windows, you can add the following to your bash profile or zshrc.

```bash
export AWS_PROFILE=$(cat ~/.awsd)
```

## Show your AWS Profile in your shell prompt
### Show your AWS Profile in your shell prompt
For better visibility into what your shell is set to it can be helpful to configure your prompt to show the value of the env variable `AWS_PROFILE`.

<img src="assets/screenshot.png" width="700">
Expand All @@ -78,7 +96,7 @@ function aws_prof {
PROMPT='OTHER_PROMPT_STUFF $(aws_info)'
```

## Add autocompletion
### Add autocompletion
You can add autocompletion when passing config as argument by adding the following to your bash profile or zshrc file.
`source _awsd_autocomplete`

Expand All @@ -95,7 +113,7 @@ complete -o nospace -F _awsd_completion "${AWSD_CMD}"

Now you can do `awsd my-p` and hit tab and if you had a profile `my-profile` it would autocomplete and find it.

## TL;DR (full config example)
### TL;DR (full config example)
```bash
alias awsd="source _awsd"
source _awsd_autocomplete
Expand Down
9 changes: 8 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
"config:recommended"
],
"schedule": ["after 8am on Tuesday"],
"packageRules": [
{
"updateTypes": ["major", "minor", "patch"],
"schedule": ["after 8am on Tuesday"]
}
]
}
2 changes: 1 addition & 1 deletion src/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/spf13/cobra"
)

var version string = "v0.1.0"
var version string = "v0.1.1"

var versionCmd = &cobra.Command{
Use: "version",
Expand Down

0 comments on commit 7ab6284

Please sign in to comment.