Skip to content

Conversation

@leggetter
Copy link
Collaborator

@leggetter leggetter commented Jun 13, 2025

feat: project use [org [proj]]

Supports:

Showing all org/project combinations and interactively select an org/project:

project use

Show just projects in a specific org and interatively select a project:

project use org_name

Directly select an org and a project in a single command:

project use org_name proj_name

Fix: create config file if it does not exist

In the changes in https://github.com/hookdeck/hookdeck-cli/tree/v0.12 a bug was introduced that required a config.toml to exist. This PR includes a fix to create the file if it does exist: default location or specified via a --config flag.

Updated config to use project_

Backward compatible config to move from workspace_ and team_ to project_.

Debug logging of API interactions

Added debug logging of API request and responses

@leggetter leggetter changed the title feat: project use [org [proj]] project use, config file creation fix, and update workspace_ to project_ Jun 13, 2025
@alexbouchardd
Copy link
Contributor

Given that the organization and project names are not unique (and case sensitive), how will we handle conflicts? Put the burden on the user as it's unlikely they'd name their resources the same?

@leggetter
Copy link
Collaborator Author

Given that the organization and project names are not unique (and case sensitive), how will we handle conflicts? Put the burden on the user as it's unlikely they'd name their resources the same?

@alexbouchardd - I wasn't aware of this. Thanks for flagging.

  • project list does partial matches
  • project use does full lowercase matches. When the project search results in 2 or more matches, it errors and informs the user that the command has to match just one project.

@leggetter leggetter merged commit f704741 into v0.12 Jun 16, 2025
1 check passed
@leggetter leggetter deleted the feat/project-use-org-proj branch June 16, 2025 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants