Skip to content

Commit

Permalink
Rewrite tab printer
Browse files Browse the repository at this point in the history
  • Loading branch information
augustuswm committed Oct 30, 2023
1 parent 321cfe1 commit 1ab5ca7
Show file tree
Hide file tree
Showing 5 changed files with 462 additions and 319 deletions.
7 changes: 7 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ mockall = "0.11.4"
newline-converter = "0.3.0"
oauth2 = "4.4.2"
octorust = "0.7.0"
owo-colors = "3.5.0"
partial-struct = { git = "https://github.com/oxidecomputer/partial-struct" }
progenitor = { git = "https://github.com/oxidecomputer/progenitor", branch = "print-example" }
progenitor-client = { git = "https://github.com/oxidecomputer/progenitor", branch = "print-example" }
Expand Down
1 change: 1 addition & 0 deletions rfd-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dirs = { workspace = true }
itertools = { workspace = true }
jsonwebtoken = { workspace = true }
oauth2 = { workspace = true }
owo-colors = { workspace = true }
progenitor-client = { workspace = true }
reqwest = { workspace = true }
rfd-sdk = { path = "../rfd-sdk" }
Expand Down
2 changes: 1 addition & 1 deletion rfd-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
let format = matches.try_get_one::<String>("format").unwrap().unwrap();
let printer = match format.as_str() {
"json" => Printer::Json(RfdJsonPrinter),
"tab" => Printer::Tab(RfdTabPrinter),
"tab" => Printer::Tab(RfdTabPrinter::default()),
other => panic!("Unknown format {}", other),
};

Expand Down
Loading

0 comments on commit 1ab5ca7

Please sign in to comment.