Skip to content
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.

Made locksmith look at cdk context #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nwouda
Copy link
Contributor

@nwouda nwouda commented Jul 2, 2021

Loads cdk.json from the current working directory and looks for the following context parameters:

"venv": ".venv",
"environments": [
  {
    "account": "1234",
    "name": "acceptance"
  },
  {
    "account": "5678",
    "name": "production"
  }
]

venv should be set to the virtual environment folder. This will cause locksmith to source the bin/activate script on initialising the locksmith session. This is limited to bash, so it will override the LOCKSMITH_SHELL variable.

environments should be a list of accounts and their names. The name is not used by locksmith, but is useful for personal reference or use within the project. Locksmith uses the account numbers to filter out non-related bookmarks.

This change also sets the prompt to make clear what environment is active. This is limited to bash since zsh overrides the passed environment variable.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant