Skip to content

Commit

Permalink
fix a typo in the default inspect format string (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcumming authored Dec 12, 2024
1 parent 82c0257 commit f20e417
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/cli/inspect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ int image_inspect([[maybe_unused]] const image_inspect_args& args,
try {
std::string meta_path =
std::filesystem::exists(paths.meta) ? paths.meta.string() : "none";
spdlog::debug("inspect format string: '{}'", args.format);
// clang-format off
auto msg = fmt::format(fmt::runtime(args.format),
fmt::arg("name", r.name),
Expand Down
2 changes: 1 addition & 1 deletion src/cli/inspect.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct image_inspect_args {
"version: {version}\n"
"tag: {tag}\n"
"system: {system}\n"
"uarch: {uarch1}\n"
"uarch: {uarch}\n"
"id: {id}\n"
"sha: {sha256}\n"
"date: {date}";
Expand Down
3 changes: 3 additions & 0 deletions test/integration/cli.bats
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,9 @@ function teardown() {
export UENV_REPO_PATH=$REPOS/apptool
export CLUSTER_NAME=arapiles

run uenv image inspect tool
assert_success

run uenv image inspect --format='{name}:{tag}' tool
assert_success
assert_output "tool:v1"
Expand Down

0 comments on commit f20e417

Please sign in to comment.