oc icon indicating copy to clipboard operation
oc copied to clipboard

Adding a new bin option for running the OC CLI tool

Open fbarbare opened this issue 3 years ago • 2 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?

[email protected] [email protected] 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

fbarbare avatar Dec 01 '21 11:12 fbarbare

looks good to me

ricardo-devis-agullo avatar Dec 01 '21 11:12 ricardo-devis-agullo

I'll create a PR then

fbarbare avatar Dec 01 '21 14:12 fbarbare

not sure this is doable, so closing it

ricardo-devis-agullo avatar Aug 26 '22 11:08 ricardo-devis-agullo