From 51bac1ed1efed6c1a70c4f98fef1d6c87bc685ca Mon Sep 17 00:00:00 2001
From: Adam Kliment <adam@netmilk.net>
Date: Wed, 21 Aug 2024 16:25:30 +0200
Subject: [PATCH] Feature files for the `--silent` and `--output-dataset` for
 the `call` command

---
 features/call-output-dataset.feature.md | 25 +++++++++++++++++++++++++
 features/call-silent.feature.md         | 22 ++++++++++++++++++++++
 2 files changed, 47 insertions(+)
 create mode 100644 features/call-output-dataset.feature.md
 create mode 100644 features/call-silent.feature.md

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`