listhen icon indicating copy to clipboard operation
listhen copied to clipboard

feat: Change open to take a boolean | string

Open atomflunder opened this issue 11 months ago β€’ 0 comments

Hi again,

this is in response to the Issue I opened #199, I went ahead and implemented it, I hope it looks okay. I was not so sure about how to design some aspects, especially the getURL and generateURL helper functions.
If this is not something you wish to implement, feel free to close this PR and the underlying issue ☺️

As it stands, this will do:

  • pnpm listhen . -> opens nothing
  • pnpm listhen . --open -> opens the baseURL (e.g. https://localhost:3000/)
  • pnpm listhen . --open myTest -> opens the baseURL + supplied string (e.g. https://localhost:3000/myTest)

resolves #199

atomflunder avatar May 31 '25 18:05 atomflunder