Go to file
dependabot[bot] e76cb98bf9
Bump codecov/codecov-action from 4 to 5
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 to 5.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-15 16:57:58 +00:00
.github Bump codecov/codecov-action from 4 to 5 2024-11-15 16:57:58 +00:00
.vscode
example
lib Move Table code 2024-03-16 21:14:18 +01:00
scripts
test
.gitignore
.metadata
LICENSE
README.md
analysis_options.yaml
pubspec.yaml Bump very_good_analysis from 5.1.0 to 6.0.0 (#9) 2024-06-25 21:30:44 +02:00

README.md

codecov

HyperTuner INI parser

INI parser for HyperTuner written in Dart.

Roadmap

Checkout Roadmap issue: https://github.com/hyper-tuner/ini_parser/issues/2

Example usage

from example/save_as_json.dart:

import 'dart:convert';
import 'dart:io';

import 'package:ini_parser/ini_parser.dart';
import 'package:path/path.dart' as p;

void main() async {
  final timer = Stopwatch()..start();
  const fileNames = [
    {
      'ecosystem': 'speeduino',
      'name': '202207',
    },
    {
      'ecosystem': 'fome',
      'name': 'fome_proteus_f4',
    },
  ];

  for (final fileName in fileNames) {
    final raw = File(
      p.join(
        Directory.current.path,
        'test/data/${fileName['ecosystem']}/ini/${fileName['name']}.ini',
      ),
    ).readAsStringSync();
    final config = await INIParser(raw).parse();
    final json = const JsonEncoder.withIndent('  ').convert(config);

    File(
      p.join(
        Directory.current.path,
        'test/data/${fileName['ecosystem']}/json/${fileName['name']}.json',
      ),
    ).writeAsStringSync(json);
  }

  // ignore: avoid_print
  print('Done in ${timer.elapsedMilliseconds}ms');
}

Compile and run:

dart compile exe example/save_as_json.dart

./example/save_as_json