Skip to content

Commit

Permalink
Default to home directory for local registry (hyperlane-xyz#3744)
Browse files Browse the repository at this point in the history
### Description

Make CLI default to homedir for local registry
  • Loading branch information
yorhodes authored May 10, 2024
1 parent 2b7dfe2 commit cc87319
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/green-ads-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hyperlane-xyz/cli": minor
---

Default to home directory for local registry
3 changes: 2 additions & 1 deletion typescript/cli/src/commands/options.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'os';
import { Options } from 'yargs';

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

export const skipConfirmationOption: Options = {
Expand Down

0 comments on commit cc87319

Please sign in to comment.