Skip to content

Conversation

@lidavidm
Copy link
Contributor

@lidavidm lidavidm commented Jan 13, 2026

What's Changed

Closes #36.
Closes #40.

@lidavidm lidavidm requested a review from amoeba January 13, 2026 05:45
@lidavidm lidavidm marked this pull request as ready for review January 13, 2026 05:45
@lidavidm
Copy link
Contributor Author

Before tackling TODOs and improving this, I'd like to first do #40.

@lidavidm
Copy link
Contributor Author

Ok well, I ended up doing #40 as well.

@lidavidm lidavidm force-pushed the dev branch 3 times, most recently from 2b72b2f to 34a11ac Compare January 13, 2026 08:07
Copy link
Contributor

@amoeba amoeba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few minor comments but this looks great.

I'm finding myself wanting docs for this and also editor support. Since we're using TOML, we can use tombi's support for JSON schema files. I guess TOML doesn't yet have a schema spec.

I put together a draft of a JSON schema for generate.toml at amoeba@2349bf7 if you're interseted.

Image

self.permissions: dict[str, bool] = {}

self.aws = {}
if aws := raw.pop("aws", {}):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I'd understand why this line (92) is written how it is versus how line 99 is.

i.e., why is this not,

self.aws = _require_bool(raw.pop("aws", False), ["aws"])

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aws has subkeys, gcloud doesn't, so aws isn't a bool value

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, right. I left this when I was still reviewing. Thanks.

@lidavidm lidavidm merged commit 503dd64 into main Jan 15, 2026
3 checks passed
@lidavidm lidavidm deleted the dev branch January 15, 2026 01:02
@lidavidm
Copy link
Contributor Author

@amoeba if you want to put up a PR for the JSON schema that would be neat. Or maybe Pydantic or something can generate one for us?

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.

[Workflow] Parse generate.toml into well-defined structure [Workflow] Have a safe way to test a PR with secrets

3 participants