Skip to content

Commit

Permalink
refactor(cli): ♻️ use measurements instead uom for units of measure
Browse files Browse the repository at this point in the history
  • Loading branch information
keinsell committed Jun 9, 2024
1 parent e83834b commit 58fe50b
Show file tree
Hide file tree
Showing 16 changed files with 397 additions and 86 deletions.
19 changes: 19 additions & 0 deletions .idea/runConfigurations/Install_CLI__Production_.xml

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

210 changes: 210 additions & 0 deletions apps/cli/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 apps/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ human-panic = "2.0.0"
clap_complete = "4.4.10"
dateless = "0.3.1"
iso8601-duration = { version = "0.2.0",features = ["serde", "chrono"] }
measurements = { version = "0.11.0",features = ["serde", "std", "from_str"] }
termimad = "0.29.2"

[features]
default = []
Expand Down
2 changes: 2 additions & 0 deletions apps/cli/DEVELOPER_LOG
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Phases:
* Afterglow: "in 4 hours"
----------------------------------------



[2024-06-05]

Come down to conclusion that scrapper of API information seems to be completely useless in CLI application, data may be delivered through SQL migration that will out of the box perform updates of stale data - I just wonder if there's a some solution for like incremental dumping of database, I really want avoid case where something will be related to substance_id then substance_id got changed or substance itself will get removed and then we'll lose ingestion information.
Expand Down
2 changes: 1 addition & 1 deletion apps/cli/src/cli/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub async fn cli() {
stderrlog::new()
// .module(module_path!())
.show_level(true)
.verbosity(2)
.verbosity(0)
.show_module_names(true)
.init()
.unwrap();
Expand Down
Loading

0 comments on commit 58fe50b

Please sign in to comment.