cli-test: Update framework with new features

* Ability to switch between environments within the same test file
* Ability to expand env vars in `cd` command
This commit is contained in:
cloudhead
2023-08-04 12:23:49 +02:00
parent aea7fb0e42
commit 2d79eecd66
3 changed files with 214 additions and 38 deletions
+33
View File
@@ -0,0 +1,33 @@
```
$ mkdir bin
$ cd bin
$ touch file.bin
```
``` ~bob
$ rad self --did
did:key:z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk
$ pwd
[..]/home/bob/.radicle
$ mkdir src
$ cd src
$ pwd
[..]/home/bob/.radicle/src
```
``` ~alice
$ rad self --did
did:key:z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi
$ pwd
[..]/home/alice/.radicle
```
``` ~bob
$ pwd
[..]/home/bob/.radicle/src
```
```
$ ls
file.bin
```