Skip to content

Conversation

@bomoko
Copy link
Contributor

@bomoko bomoko commented Aug 11, 2025

This PR adds the ability to add simple root level flags to control Lagoon cli's behaviour.

This is to be used, initially, to flag experimental behaviours.

it adds a "Flags" array of strings to the root of the config

current: amazeeio-clusterN
flags:
  - experimental
default: amazeeio-clusterN

This can be accessed via the function func (c *Config) IsFlagSet(flag string) bool attached to the Config object, which checks flag names, provides some measure of indirection, and is case insensitive.

@bomoko bomoko requested a review from shreddedbacon August 11, 2025 01:59
@shreddedbacon shreddedbacon merged commit c5be91e into main Aug 14, 2025
8 checks passed
@shreddedbacon shreddedbacon deleted the feature-flags branch August 14, 2025 02:17
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