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

Installer for Maat applications (`maat new`).

example/example.dart

import 'dart:io';

Future<void> main() async {
  final executable = File('bin/maat.dart').absolute;
  final parent = Directory.systemTemp.createTempSync('ptah_example');

  try {
    final result = await Process.run(Platform.resolvedExecutable, [
      executable.path,
      'new',
      'hello',
      '--skip-install',
    ], workingDirectory: parent.path);
    if (result.exitCode != 0) {
      throw ProcessException(
        executable.path,
        const ['new', 'hello', '--skip-install'],
        '${result.stdout}${result.stderr}',
        result.exitCode,
      );
    }
    stdout.write(result.stdout);
  } finally {
    parent.deleteSync(recursive: true);
  }
}
0
likes
150
points
0
downloads

Documentation

API reference

Publisher

verified publishergaitco.com

Weekly Downloads

Installer for Maat applications (`maat new`).

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

args, path

More

Packages that depend on ptah