Fix
This commit is contained in:
parent
c277231b7d
commit
29043e7e9e
|
@ -156,7 +156,7 @@ struct CmdFlakeInfo : FlakeCommand, MixJSON
|
||||||
|
|
||||||
if (json) {
|
if (json) {
|
||||||
auto json = flakeToJson(*store, flake);
|
auto json = flakeToJson(*store, flake);
|
||||||
logger->stdout(json.dump());
|
logger->stdout("%s", json.dump());
|
||||||
} else
|
} else
|
||||||
printFlakeInfo(*store, flake);
|
printFlakeInfo(*store, flake);
|
||||||
}
|
}
|
||||||
|
@ -174,7 +174,7 @@ struct CmdFlakeListInputs : FlakeCommand, MixJSON
|
||||||
auto flake = lockFlake();
|
auto flake = lockFlake();
|
||||||
|
|
||||||
if (json)
|
if (json)
|
||||||
logger->stdout(flake.lockFile.toJson());
|
logger->stdout("%s", flake.lockFile.toJson());
|
||||||
else {
|
else {
|
||||||
logger->stdout("%s", flake.flake.lockedRef);
|
logger->stdout("%s", flake.flake.lockedRef);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue