opencomponents/oc

Adding a new bin option for running the OC CLI tool

Closed this issue · 3 comments

Adding a new bin option for running the OC CLI tool as oc can already be used by other CLIs

Who is the bug affecting?

Component creators

What is affected by this bug?

node client

When does this occur?

When trying to run an oc command using npx

Where on the platform does it happen?

CLI

How do we replicate the issue?

  1. Run npx oc package on an Ubuntu machine that has the Red Hat OpenShift CLI installed

Expected behavior (i.e. solution)

It should have run the package command of the OpenComponent library

What version of OC, Node.js and OS are you using?

OC@0.49.4
Node@16.13.0
npm > 7

Other Comments

We could add a open-components option in the bin of the package.json so we can ensure it does not conflict with other CLI tools

We were working around this issue by using the --ignore-existing argument on the npx command, but this has been removed since npm@7

looks good to me

I'll create a PR then

not sure this is doable, so closing it