Skip to content

feat(cli): Allow overriding client environment with Dart define#420

Merged
dnys1 merged 1 commit intomainfrom
05-11-feat_cli_allow_overriding_client_environment_with_dart_define
May 11, 2025
Merged

feat(cli): Allow overriding client environment with Dart define#420
dnys1 merged 1 commit intomainfrom
05-11-feat_cli_allow_overriding_client_environment_with_dart_define

Conversation

@dnys1
Copy link
Member

@dnys1 dnys1 commented May 11, 2025

Adds the ability for apps to set a dart define of CELEST_ENVIRONMENT instead of passing the environment to celest.init.

For example, you can now run flutter run -d chrome --dart-define=CELEST_ENVIRONMENT=production to get the same behavior as celest.init(environment: CelestEnvironment.production).

Copy link
Member Author

dnys1 commented May 11, 2025

@dnys1 dnys1 force-pushed the 05-11-feat_cli_allow_overriding_client_environment_with_dart_define branch from 33d7f62 to ca71946 Compare May 11, 2025 17:45
Copy link
Member Author

dnys1 commented May 11, 2025

Merge activity

  • May 11, 11:19 AM PDT: A user started a stack merge that includes this pull request via Graphite.
  • May 11, 11:21 AM PDT: Graphite rebased this pull request as part of a merge.
  • May 11, 11:22 AM PDT: @dnys1 merged this pull request with Graphite.

@dnys1 dnys1 changed the base branch from 05-11-chore_examples_update_for_dart_3.7 to graphite-base/420 May 11, 2025 18:19
@dnys1 dnys1 changed the base branch from graphite-base/420 to main May 11, 2025 18:19
Adds the ability for apps to set a dart define of `CELEST_ENVIRONMENT` instead of passing the environment to `celest.init`.

For example, you can now run `flutter run -d chrome --dart-define=CELEST_ENVIRONMENT=production` to get the same behavior as `celest.init(environment: CelestEnvironment.production)`.
@dnys1 dnys1 force-pushed the 05-11-feat_cli_allow_overriding_client_environment_with_dart_define branch from ca71946 to cb6a84f Compare May 11, 2025 18:20
@dnys1 dnys1 merged commit fed383b into main May 11, 2025
7 checks passed
@dnys1 dnys1 deleted the 05-11-feat_cli_allow_overriding_client_environment_with_dart_define branch May 11, 2025 18:22
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