Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Improve --output flag for the commands to support all types of paths #9090

Closed
Tracked by #7246
ishantiw opened this issue Oct 12, 2023 · 0 comments
Closed
Tracked by #7246

Improve --output flag for the commands to support all types of paths #9090

ishantiw opened this issue Oct 12, 2023 · 0 comments

Comments

@ishantiw
Copy link
Contributor

Description

Create a generic utility for handling --output flag in Lisk commander. There are a few commands that use --output flag to output results to a specific directory along with filename or without it.

  • By default we write to current directory cwd
  • If a path is given in any form, with ~ or relative or absolute path needs to be resolved.
  • If the path is given along with filename then choose that custom file name otherwise use a default one, preferably namespace passphrase:create to passphrase.json or keys:create to keys.json

Acceptance Criteria

  • All commands using --output flag should have same behaviour
  • Should have all unit tests

Additional Information

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants