Skip to content

Commit

Permalink
feat: dfx call random value when argument is not provided (#1376)
Browse files Browse the repository at this point in the history
```
$ dfx canister call test greet
Unspecified argument, sending the following random argument:
("]44-eR@H")

("Hello, ]44-eR@H!")

$ dfx canister call test greet --random '{ text = Some "emoji", width = Some 10 }'
Unspecified argument, sending the following random argument:
("🟥🝶🦖🎣🜦🐤🍤🦟🏫🐡")

("Hello, 🟥🝶🦖🎣🜦🐤🍤🦟🏫🐡!")

$ dfx canister call test greet --random '{ text = Some "name" }'
Unspecified argument, sending the following random argument:
("Citlalli Ullrich")

("Hello, Citlalli Ullrich!")
```

Fix dfinity/dx-triage#41
  • Loading branch information
chenyan-dfinity authored Feb 2, 2021
1 parent 78f45bb commit b192961
Show file tree
Hide file tree
Showing 7 changed files with 365 additions and 40 deletions.
Loading

0 comments on commit b192961

Please sign in to comment.