Default to home directory for local registry (#3744)

### Description

Make CLI default to homedir for local registry
kunal/avs-contract-deployment
Yorke Rhodes 7 months ago committed by GitHub
parent 2b7dfe27e1
commit cc8731985b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      .changeset/green-ads-live.md
  2. 3
      typescript/cli/src/commands/options.ts

@ -0,0 +1,5 @@
---
"@hyperlane-xyz/cli": minor
---
Default to home directory for local registry

@ -1,3 +1,4 @@
import os from 'os';
import { Options } from 'yargs'; import { Options } from 'yargs';
import { DEFAULT_GITHUB_REGISTRY } from '@hyperlane-xyz/registry'; import { DEFAULT_GITHUB_REGISTRY } from '@hyperlane-xyz/registry';
@ -29,7 +30,7 @@ export const registryUriCommandOption: Options = {
export const overrideRegistryUriCommandOption: Options = { export const overrideRegistryUriCommandOption: Options = {
type: 'string', type: 'string',
description: 'Path to a local registry to override the default registry', description: 'Path to a local registry to override the default registry',
default: './', default: `${os.homedir()}/.hyperlane`,
}; };
export const skipConfirmationOption: Options = { export const skipConfirmationOption: Options = {

Loading…
Cancel
Save