diff --git a/features/call-output-dataset.feature.md b/features/call-output-dataset.feature.md new file mode 100644 index 00000000..b6bcb951 --- /dev/null +++ b/features/call-output-dataset.feature.md @@ -0,0 +1,25 @@ +# Feature: Call Platfrom Actor and output default dataset + +- As a user of a Platform Actor +- I want run a Platfotm Actor and wait for its results +- In order to integrate it with other unix-like CLI tools + +## Background: + +- Given I'm logged in to Apify as a regular user +- And there's `netmilk/actor-echo` actor available in the store +- And the Actor implementation doesn't throw itself + +## Rule: I can run Actor and output its dataset in one command + +### Example: Using the `actor call` with the `--output-dataset` flag + +- When I run: + ``` + $ apify call netmilk/actor-echo --input='{"input":{"foo":"bar"}}' --output-dataset + ``` +- Then the stdout output contains JSON: + ``` + [{"foo": "bar"}] + ``` +- And the exit status code is `0` diff --git a/features/call-silent.feature.md b/features/call-silent.feature.md new file mode 100644 index 00000000..ef914715 --- /dev/null +++ b/features/call-silent.feature.md @@ -0,0 +1,22 @@ +# Feature: Call Platfrom Actor + +- As a CLI user of a Platform Actor +- I don't want the stdout to be pulluted with the Actor's logs +- In order to integrate it with other unix-like CLI tools + +## Background: + +- Given I'm logged in to Apify as a regular user +- And there's `netmilk/actor-echo` actor available in the store +- And the Actor implementation doesn't throw itself + +## Rule: I can supress the Actor's log + +### Example: Using the `actor call` with the `--silent` flag + +- When I run: + ``` + $ apify call netmilk/actor-echo --silent --input='{"foo":"bar"}' + ``` +- Then the the stdout is empty +- And the exit status code is `0`