Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/celest_cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- macos-latest-xlarge
- windows-large
runs-on: ${{ matrix.os }}
timeout-minutes: 30 # Windows is really slow
timeout-minutes: 30
steps:
- name: Git Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
Expand Down
6 changes: 5 additions & 1 deletion apps/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
## NEXT
## 1.0.13

- feat: Serve DB studio when running locally
- feat: Add ARM64 Docker images
- feat: Migrate databases to Turso
- fix: Don't throw if `analysis_options.yaml` is missing
- chore: Update codegen for database changes
- chore: Bump Dart SDK constraint to `^3.7.0`
- chore: Reformat with Dart 3.7

## 1.0.12

Expand Down
39 changes: 20 additions & 19 deletions apps/cli/bin/celest.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,26 @@ import 'package:celest_cli/src/commands/project/status_command.dart';
import 'package:celest_cli/src/performance/sentry_perf.dart';

void main(List<String> args) async {
final cli = Cli(
'celest',
'A command-line interface for Celest, the Flutter cloud platform.',
version: packageVersion,
sentryConfig: SentryConfig(
dsn:
'https://aa63419b83419820da1454809c0025db@o4506345201532928.ingest.us.sentry.io/4506496721158144',
),
)
..addCommand(InitCommand())
..addCommand(StartCommand())
..addCommand(BuildCommand())
..addCommand(AnalysisServerCommand())
..addCommand(UpgradeCommand())
..addCommand(UninstallCommand())
..addCommand(PrecacheCommand())
..addCommand(DeployCommand())
..addCommand(AuthCommand())
..addCommand(StatusCommand());
final cli =
Cli(
'celest',
'A command-line interface for Celest, the Flutter cloud platform.',
version: packageVersion,
sentryConfig: SentryConfig(
dsn:
'https://aa63419b83419820da1454809c0025db@o4506345201532928.ingest.us.sentry.io/4506496721158144',
),
)
..addCommand(InitCommand())
..addCommand(StartCommand())
..addCommand(BuildCommand())
..addCommand(AnalysisServerCommand())
..addCommand(UpgradeCommand())
..addCommand(UninstallCommand())
..addCommand(PrecacheCommand())
..addCommand(DeployCommand())
..addCommand(AuthCommand())
..addCommand(StatusCommand());

// Cloud API commands
cli
Expand Down
19 changes: 11 additions & 8 deletions apps/cli/fixtures/standalone/api/client/lib/api_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,12 @@ enum CelestEnvironment {
production;

Uri get baseUri => switch (this) {
local => _$celest.kIsWeb || !Platform.isAndroid
? Uri.parse('http://localhost:7777')
: Uri.parse('http://10.0.2.2:7777'),
production => Uri.parse('https://example.celest.run'),
};
local =>
_$celest.kIsWeb || !Platform.isAndroid
? Uri.parse('http://localhost:7777')
: Uri.parse('http://10.0.2.2:7777'),
production => Uri.parse('https://example.celest.run'),
};
}

class Celest with _$celest.CelestBase {
Expand All @@ -125,8 +126,9 @@ class Celest with _$celest.CelestBase {
_$native_storage_native_storage.NativeStorage(scope: 'celest');

@override
late _$http_http.Client httpClient =
_$celest.CelestHttpClient(secureStorage: nativeStorage.secure);
late _$http_http.Client httpClient = _$celest.CelestHttpClient(
secureStorage: nativeStorage.secure,
);

late Uri _baseUri;

Expand All @@ -135,7 +137,8 @@ class Celest with _$celest.CelestBase {
T _checkInitialized<T>(T Function() value) {
if (!_initialized) {
throw StateError(
'Celest has not been initialized. Make sure to call `celest.init()` at the start of your `main` method.');
'Celest has not been initialized. Make sure to call `celest.init()` at the start of your `main` method.',
);
}
return value();
}
Expand Down
Loading
Loading