export commands to allow use of stripes-cli in other node apps

Description

You know it would be just super if I could write a node app with stripes-cli as a library package so I could do things like

Then I could easily write little node scripts where now I can only write little shell scripts. Gosh that would be dandy.

tells me the things to figure out are

  1. what would be a default entry point into stripes-cli

  2. how to translate the commands in a way that they would have exports

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Khalilah Gambrell January 8, 2021 at 9:13 PM

, I defer to you. So I will close.

Zak Burke January 8, 2021 at 9:02 PM

See https://github.com/folio-org/folio-tools/tree/master/okapi-request

Maybe this should be closed as "Won't Do" and we can aggregate the various okapi-helper scripts/tools folks have written in folio-tools?

Victoria_Smelova November 18, 2020 at 3:24 PM


It's a new area for Firebird, so might be less effort-consuming for someone working with stripes-sli.
Adding to Firebird backlog for now and we''ll look into it if/when capacity allows.
Feel free to take it back to Stripes Force if they want to work on it earlier than its started by Firebird.

Zak Burke August 31, 2020 at 4:31 PM

There are examples in other repos that show the same problem, i.e. the script is not portable across platforms (a #!/bin/sh script is unix-specific) and, like pdiff, is a mix of shell, curl, and jq. That's not necessarily a bad thing – it's a nicely written script that does a good job parameterizing stuff like the token and tenant – but all that work piping stuff in and out of jq would be wicked simple if you could just write the whole thing in JS.

But, "everything in Node FTW" is a dev talking. Could we get a sysadm/FSE/devops representative to help us realistically asses the value/priority of this?

Zak Burke July 13, 2020 at 7:13 PM

, e.g. I'd love to write scripts like https://raw.githubusercontent.com/zburke/folio-tools/master/pdiff/pdiff.sh as straight node scripts instead of that rather ugly mash of sh / stripes-cli / jq.

Won't Do

Details

Assignee

Reporter

Priority

Story Points

Development Team

Firebird

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created July 1, 2020 at 6:15 PM
Updated October 17, 2022 at 4:57 PM
Resolved January 8, 2021 at 9:14 PM
TestRail: Cases
TestRail: Runs