Skip to content

chore: rework global context and CLI setup#89

Closed
albertodonato wants to merge 1 commit intomainfrom
ack/api-key-support
Closed

chore: rework global context and CLI setup#89
albertodonato wants to merge 1 commit intomainfrom
ack/api-key-support

Conversation

@albertodonato
Copy link
Copy Markdown
Contributor

@albertodonato albertodonato commented Jan 19, 2026

what

  • rework StackletContext and StackletConfig and add StackletCredentials
  • cleanup click-related setup to use the StackletContext for common data
  • remove click_group_entry which was defined and called for each group in
    addition to handlers (so multiple times for a single CLI call)

why

make the CLI setup more predictable by accessing all configured details via StackletContext, rather than sticking entries in a plain dict.

testing

local testing, updated tests

docs

n/a

@albertodonato albertodonato force-pushed the ack/api-key-support branch 4 times, most recently from 1abb794 to ac25cb0 Compare January 19, 2026 16:57
[ENG-6324](https://stacklet.atlassian.net/browse/ENG-6324)

### what

- support using API keys in place of tokens (via `STACKLET_API_KEY` env var)
- rework StackletContext and StackletConfig and add StackletCredentials
- cleanup click-related setup to use the StackletContext for common data
- remove `click_group_entry` which was defined and called for each group in
  addition to handlers (so multiple times for a single CLI call)

### why

- provide support for API keys
- make the CLI setup more predictable by accessing all configured details via
  StackletContext, rather than sticking entries in a plain dict.

### testing

local testing, updated tests

### docs

n/a
@albertodonato albertodonato changed the title feat: add support for using API keys in addition to tokens [ENG-6324] chore: rework global context and CLI setup Jan 20, 2026
@albertodonato albertodonato deleted the ack/api-key-support branch January 21, 2026 07:33
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.

1 participant