Skip to content

Commit

Permalink
feat: initial draft for cli
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony Griffon <anthony@griffon.one>
  • Loading branch information
Miaxos committed Nov 28, 2023
1 parent 1eee7cd commit ef40377
Show file tree
Hide file tree
Showing 26 changed files with 357 additions and 71 deletions.
2 changes: 0 additions & 2 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ rustflags = [
"-Zmacro-backtrace",
"-Zdebug-macros",
"-Zthreads=8",
"-C",
"link-arg=-fuse-ld=mold",
"--cfg",
"tokio_unstable"
]
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
test_project/
239 changes: 236 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ thiserror = "1"
toml = "0.8"
tokio = "1"
tokio-util = "0.7"
sentry = "0.32"
sentry-tracing = "0.32"
serde = "1"
serde_json = "1"

Expand Down
8 changes: 8 additions & 0 deletions bacon.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,11 @@ default_job = "check"
[jobs.check]
command = ["cargo", "check", "--color", "always", "--tests"]
need_stdout = false

[jobs.check-lib]
command = ["cargo", "check", "--color", "always", "--tests", "--lib"]
need_stdout = false

[jobs.clippy]
command = ["cargo", "clippy", "--color", "always", "--all"]
need_stdout = false
7 changes: 1 addition & 6 deletions cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Telemetry is opt-in but you can desactivate it setting this environment
variable:

// TODO(@miaxos)
```bash
SWARMD_TELEMETRY_LEVEL=0
```
Expand All @@ -17,9 +18,3 @@ SWARMD_TELEMETRY_LEVEL=0
**Crash Reports** - Crash reports collect diagnostic information when swarmd crashes and sends it to help understand why the crash occurred and what changes are needed to prevent the crash in the future.

**Error Telemetry** - Error telemetry collects information about errors that do not crash the application but are unexpected.

**Usage Data** - Usage data collects information about how features are used and perform which helps us prioritize future product improvements.

#### Usage data

This is the list of every usage we keep the track of:
Loading

0 comments on commit ef40377

Please sign in to comment.