kidney 2.0.2 copy "kidney: ^2.0.2" to clipboard
kidney: ^2.0.2 copied to clipboard

kidney applies shell commands to multiple dart and flutter packages at once.

example/kidney_example.dart

#!/usr/bin/env dart
// @license
// Copyright (c) 2019 - 2024 Dr. Gabriel Gatzsche. All Rights Reserved.
//
// Use of this source code is governed by terms that can be
// found in the LICENSE file in the root of this package.

import 'package:kidney/kidney.dart';

Future<void> main() async {
  const param = 'foo';

  final kidney = Kidney(
    ggLog: (msg) {},
  );

  print('Executing with param $param');
  await kidney.run(['--verbose', 'ls', '-l', '-a']);

  print('Done.');
}