| # GENERATED BY: test/dependency_services/dependency_services_test.dart |
| |
| $ bin/dependency_services.dart list |
| { |
| "dependencies": [ |
| { |
| "name": "foo", |
| "version": "1.2.3", |
| "kind": "direct", |
| "constraint": "^1.0.0" |
| } |
| ] |
| } |
| |
| $ bin/dependency_services.dart report |
| { |
| "dependencies": [ |
| { |
| "name": "foo", |
| "version": "1.2.3", |
| "kind": "direct", |
| "latest": "2.2.3", |
| "constraint": "^1.0.0", |
| "compatible": [], |
| "single-breaking": [ |
| { |
| "name": "foo", |
| "version": "2.2.3", |
| "kind": "direct", |
| "constraint": null |
| }, |
| { |
| "name": "transitive", |
| "version": "1.0.0", |
| "kind": "transitive", |
| "constraint": null |
| } |
| ], |
| "multi-breaking": [ |
| { |
| "name": "foo", |
| "version": "2.2.3", |
| "kind": "direct", |
| "constraint": null |
| }, |
| { |
| "name": "transitive", |
| "version": "1.0.0", |
| "kind": "transitive", |
| "constraint": null |
| } |
| ] |
| } |
| ] |
| } |
| |
| $ bin/dependency_services.dart apply |
| {"dependencies":[]} |
| |
| myapp/pubspec.yaml: |
| {"name":"app","dependencies":{"foo":^2.2.3},"environment":{"sdk":">=0.1.2 <1.0.0"}} |
| myapp/pubspec.lock: |
| # Generated by pub |
| # See https://dart.dev/tools/pub/glossary#lockfile |
| packages: |
| foo: |
| dependency: "direct main" |
| description: |
| name: foo |
| url: "http://localhost:<port>" |
| source: hosted |
| version: 2.2.3 |
| sdks: |
| dart: ">=0.1.2 <1.0.0" |
| |