Skip to content

Commit

Permalink
view cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
ComradeVanti committed Nov 1, 2024
1 parent 3bc4095 commit f8641f0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/cli/cmd-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,16 @@ export function makeViewCmd(
);

return new Command("view")
.argument("<pkg>", "Reference to a package", mustBePackageSpec)
.argument("<package-spec>", "Spec of a package", mustBePackageSpec)
.addOption(primaryRegistryUrlOpt)
.addOption(systemUserOpt)
.addOption(upstreamOpt)
.aliases(["v", "info", "show"])
.description("view package information")
.summary("view package information")
.description(
`Print information about a remote package.
openupm view com.some.package`
)
.action(
withErrorLogger(log, async function (packageSpec, options) {
const homePath = getHomePathFromEnv(process.env);
Expand Down

0 comments on commit f8641f0

Please sign in to comment.