Skip to main content

just_game_engine_cli 0.1.0 copy "just_game_engine_cli: ^0.1.0" to clipboard
just_game_engine_cli: ^0.1.0 copied to clipboard

The Just Game Engine's commands for `just` (just_core_cli): run and build games, check releases hold no editor, manage scenes and migrate saved files.

example/just_game_engine_cli_example.dart

// Proving from a game's source that its editor can't ship — what
// `just game check release-imports` does — from a script or a test.
//
//     dart run example/just_game_engine_cli_example.dart [game folder]
//
// The rules come from the project: the editor's own packages and the tools,
// plus every installed Asset Store item's editor-only libraries.

import 'dart:io';

import 'package:just_game_engine_cli/just_game_engine_cli.dart';

void main(List<String> args) {
  final project = JustProject(args.isEmpty ? Directory.current.path : args[0]);
  final rules = project.releaseRules();
  stdout.writeln('Never in a release: ${rules.forbidden.join(', ')}');

  const entry = GameEntries.defaultGame;
  final reachable = project.editorReachableFrom(entry, rules: rules);
  if (reachable.isEmpty) {
    stdout.writeln('OK: no editor code is reachable from $entry.');
    return;
  }
  stderr.writeln('Editor code is reachable from $entry:');
  for (final trail in reachable) {
    stderr.writeln('  $trail');
  }
  exitCode = 1;
}
1
likes
0
points
210
downloads

Publisher

verified publisherjustunknown.com

Weekly Downloads

The Just Game Engine's commands for `just` (just_core_cli): run and build games, check releases hold no editor, manage scenes and migrate saved files.

Repository (GitHub)
View/report issues

Topics

#cli #gamedev #game-engine #flutter

License

unknown (license)

Dependencies

args, just_core_cli, just_game_engine_formats

More

Packages that depend on just_game_engine_cli