Skip to content

Improve get command arguments validation #12

@qzb

Description

@qzb

Currently get command validates its parameters rather loosely. We should add at least following checks:

  • check if number of positional arguments is less than 2
  • validate command name and --alias against regexp (/^[a-z0-9_-]+$/?`)
  • check if --version is a correct semver range
  • check if --from is a correct URL

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions