Skip to content

Commit ef40377

Browse files
committed
feat: initial draft for cli
Signed-off-by: Anthony Griffon <[email protected]>
1 parent 1eee7cd commit ef40377

File tree

26 files changed

+357
-71
lines changed

26 files changed

+357
-71
lines changed

.cargo/config.toml

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ rustflags = [
1313
"-Zmacro-backtrace",
1414
"-Zdebug-macros",
1515
"-Zthreads=8",
16-
"-C",
17-
"link-arg=-fuse-ld=mold",
1816
"--cfg",
1917
"tokio_unstable"
2018
]

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/target
2+
test_project/

Cargo.lock

+236-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ thiserror = "1"
3030
toml = "0.8"
3131
tokio = "1"
3232
tokio-util = "0.7"
33+
sentry = "0.32"
34+
sentry-tracing = "0.32"
3335
serde = "1"
3436
serde_json = "1"
3537

bacon.toml

+8
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,11 @@ default_job = "check"
88
[jobs.check]
99
command = ["cargo", "check", "--color", "always", "--tests"]
1010
need_stdout = false
11+
12+
[jobs.check-lib]
13+
command = ["cargo", "check", "--color", "always", "--tests", "--lib"]
14+
need_stdout = false
15+
16+
[jobs.clippy]
17+
command = ["cargo", "clippy", "--color", "always", "--all"]
18+
need_stdout = false

cli/README.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
Telemetry is opt-in but you can desactivate it setting this environment
99
variable:
1010

11+
// TODO(@miaxos)
1112
```bash
1213
SWARMD_TELEMETRY_LEVEL=0
1314
```
@@ -17,9 +18,3 @@ SWARMD_TELEMETRY_LEVEL=0
1718
**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.
1819

1920
**Error Telemetry** - Error telemetry collects information about errors that do not crash the application but are unexpected.
20-
21-
**Usage Data** - Usage data collects information about how features are used and perform which helps us prioritize future product improvements.
22-
23-
#### Usage data
24-
25-
This is the list of every usage we keep the track of:

0 commit comments

Comments
 (0)