From 825d2c4352022e7397854b2bd9ba7d3589873c07 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 15 Feb 2023 23:32:42 +0100 Subject: make wallet-cli runnable under qtart --- packages/taler-harness/src/index.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'packages/taler-harness/src/index.ts') diff --git a/packages/taler-harness/src/index.ts b/packages/taler-harness/src/index.ts index e4ee25dae..14b8a4302 100644 --- a/packages/taler-harness/src/index.ts +++ b/packages/taler-harness/src/index.ts @@ -23,7 +23,6 @@ import os from "os"; import path from "path"; import { Amounts, - clk, Configuration, decodeCrock, Logger, @@ -38,6 +37,7 @@ import { GlobalTestState, runTestWithState } from "./harness/harness.js"; import { getTestInfo, runTests } from "./integrationtests/testrunner.js"; import { lintExchangeDeployment } from "./lint.js"; import { runEnvFull } from "./env-full.js"; +import { clk } from "@gnu-taler/taler-util/clk"; const logger = new Logger("taler-harness:index.ts"); @@ -74,6 +74,15 @@ const advancedCli = testingCli.subcommand("advancedArgs", "advanced", { help: "Subcommands for advanced operations (only use if you know what you're doing!).", }); +advancedCli + .subcommand("decode", "decode", { + help: "Decode base32-crockford.", + }) + .action((args) => { + const enc = fs.readFileSync(0, "utf8"); + console.log(decodeCrock(enc.trim())); + }); + advancedCli .subcommand("bench1", "bench1", { help: "Run the 'bench1' benchmark", @@ -272,7 +281,7 @@ testingCli help: "Produce less output.", }) .flag("noTimeout", ["--no-timeout"], { - help: "Do not time out tests." + help: "Do not time out tests.", }) .action(async (args) => { await runTests({ -- cgit v1.2.3