Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spec for the --silent and --output-dataset for the call command #615

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions features/call-output-dataset.feature.md
Original file line number Diff line number Diff line change
@@ -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`
22 changes: 22 additions & 0 deletions features/call-silent.feature.md
Original file line number Diff line number Diff line change
@@ -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`
Loading