eric 1.0.0-alpha.3 copy "eric: ^1.0.0-alpha.3" to clipboard
eric: ^1.0.0-alpha.3 copied to clipboard

discontinuedreplaced by: pubspec_manager
outdated

Read, write and modify a pubspec.yaml including retention and modifications of comments and out of spec content.

example/example.dart

import 'package:eric/eric.dart';

void main() {
  Pubspec(
      name: 'new eric',
      version: '1.0.0-alpha.2',
      description: 'An example',
      environment: Environment(sdk: '>3.0.0 <=4.0.0'))
    ..dependencies
        .append(HostedDependency(name: 'dcli', url: 'https://onepub.dev'))
        .comments
        .append('DCLI for do file system stuff')
        .append('Hello world')
    ..dependencies
        .append(PubHostedDependency(name: 'dcli_core', version: '1.0.0'))
    ..save(filename: 'example.yaml');
}
1
likes
0
points
15
downloads

Publisher

verified publisheronepub.dev

Weekly Downloads

Read, write and modify a pubspec.yaml including retention and modifications of comments and out of spec content.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

fsm2, meta, path, pub_semver, strings

More

Packages that depend on eric