Commit 978f4295 authored by r-4bb1t's avatar r-4bb1t
Browse files

feat: add `-T` short option for `--timeout` in `fedify lookup`

parent e94e4f21
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ To be released.
    allows it to parse non-Semantic Versioning number strings more flexibly.
    [[#353], [#365] by Hyeonseo Kim]]

 -  Added `--timeout` option to `fedify lookup` command. This option allows
 -  Added `-T`/`--timeout` option to `fedify lookup` command. This option allows
    users to specify timeout in seconds for network requests to prevent
    hanging on slow or unresponsive servers.
    [[#258] by Hyunchae Kim]
+2 −2
Original line number Diff line number Diff line
@@ -187,7 +187,7 @@ function handleTimeoutError(
  const urlText = url ? ` for: ${colors.red(url)}` : "";
  spinner.fail(`Request timed out after ${timeoutSeconds} seconds${urlText}.`);
  console.error(
    "Try increasing the timeout with --timeout option or check network connectivity.",
    "Try increasing the timeout with -T/--timeout option or check network connectivity.",
  );
}

@@ -251,7 +251,7 @@ export const command = new Command()
    "Specify the output file path.",
  )
  .option(
    "--timeout <seconds:number>",
    "-T, --timeout <seconds:number>",
    "Set timeout for network requests in seconds.",
  )
  .action(async (options, ...urls: string[]) => {