ARK-Builders / ARK-Builders/ark-core

`ark-cli`: Shell compatibility

Open
#56 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Rust
Stars
10
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Example with reading properties:
```
$ ark-cli file read . properties 22-207093268

{"ai":"true","desc":null,"favorites":"true","title":"duck"}
```

Expected result:
```
{
"ai": "true",
"desc": null,
"favorites": "true",
"title": "duck"
}
```

Actual result:
```
$ ark-cli file read . properties 22-207093268 | jq
parse error: Invalid numeric literal at line 1, column 8
```

In this particular example, the problem is only message `"Loading app id at /home/kirill/.ark..."`. This could be solved by introducing verbosity levels. However, we should also ensure that other commands provide composable outputs.

- [ ] **Write information messages into `stderr`, so they don't get into pipe (`|`)**
- [ ] **Implement verbosity control, e.g. `-v` for more details or `-q` for only result**

Contributor guide

Open the contributing guide

Research direction

Start with the ark-cli file-read command shown in the issue and trace how its informational message is written when output is piped to jq. The work is complete when informational output no longer contaminates composable command results and verbosity controls support detailed, quiet, or result-only output across the relevant commands.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.