blob: c536b723f8fc2f8421d1d9feae0de837f4258a47 [file] [log] [blame]
# GENERATED BY: test/directory_option_test.dart
## Section 0
$ pub add --directory=myapp foo
Resolving dependencies in myapp...
+ foo 1.0.0
Changed 1 dependency in myapp!
-------------------------------- END OF OUTPUT ---------------------------------
## Section 1
$ pub -C myapp add bar
Resolving dependencies in myapp...
+ bar 1.2.3
Changed 1 dependency in myapp!
-------------------------------- END OF OUTPUT ---------------------------------
## Section 2
$ pub -C 'myapp/example' get --directory=myapp bar
Resolving dependencies in myapp...
Got dependencies in myapp!
-------------------------------- END OF OUTPUT ---------------------------------
## Section 3
$ pub remove bar -C myapp
Resolving dependencies in myapp...
These packages are no longer being depended on:
- bar 1.2.3
Changed 1 dependency in myapp!
-------------------------------- END OF OUTPUT ---------------------------------
## Section 4
$ pub get bar -C myapp
Resolving dependencies in myapp...
Got dependencies in myapp!
-------------------------------- END OF OUTPUT ---------------------------------
## Section 5
$ pub get bar -C 'myapp/example'
Resolving dependencies in myapp/example...
+ foo 1.0.0
+ test_pkg 1.0.0 from path myapp
Changed 2 dependencies in myapp/example!
-------------------------------- END OF OUTPUT ---------------------------------
## Section 6
$ pub get bar -C 'myapp/example2'
Resolving dependencies in myapp/example2...
[STDERR] Error on line 1, column 9 of myapp/pubspec.yaml: "name" field doesn't match expected name "myapp".
[STDERR] ╷
[STDERR] 1 │ {"name":"test_pkg","version":"1.0.0","homepage":"http://pub.dev","description":"A package, I guess.","environment":{"sdk":">=1.8.0 <=2.0.0"}, dependencies: { foo: ^1.0.0}}
[STDERR] │ ^^^^^^^^^^
[STDERR] ╵
[EXIT CODE] 65
-------------------------------- END OF OUTPUT ---------------------------------
## Section 7
$ pub get bar -C 'myapp/broken_dir'
[STDERR] Could not find a file named "pubspec.yaml" in "$SANDBOX/myapp/broken_dir".
[EXIT CODE] 66
-------------------------------- END OF OUTPUT ---------------------------------
## Section 8
$ pub downgrade -C myapp
Resolving dependencies in myapp...
foo 1.0.0
No dependencies changed in myapp.
-------------------------------- END OF OUTPUT ---------------------------------
## Section 9
$ pub upgrade bar -C myapp
Resolving dependencies in myapp...
foo 1.0.0
No dependencies changed in myapp.
-------------------------------- END OF OUTPUT ---------------------------------
## Section 10
$ pub run -C myapp 'bin/app.dart'
Building package executable...
Built test_pkg:app.
Hi
-------------------------------- END OF OUTPUT ---------------------------------
## Section 11
$ pub publish -C myapp --dry-run
Publishing test_pkg 1.0.0 to http://localhost:$PORT:
├── CHANGELOG.md (<1 KB)
├── LICENSE (<1 KB)
├── README.md (<1 KB)
├── bin
│ └── app.dart (<1 KB)
├── example
│ └── pubspec.yaml (<1 KB)
├── example2
│ └── pubspec.yaml (<1 KB)
├── lib
│ └── test_pkg.dart (<1 KB)
└── pubspec.yaml (<1 KB)
The server may enforce additional checks.
[STDERR]
[STDERR] Package has 0 warnings.
-------------------------------- END OF OUTPUT ---------------------------------
## Section 12
$ pub uploader -C myapp add sigurdm@google.com
[STDERR] Package uploaders are no longer managed from the command line.
[STDERR] Manage uploaders from:
[STDERR]
[STDERR] https://pub.dev/packages/test_pkg/admin
[EXIT CODE] 1
-------------------------------- END OF OUTPUT ---------------------------------
## Section 13
$ pub deps -C myapp
Dart SDK 1.12.0
test_pkg 1.0.0
└── foo 1.0.0