Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Allow piping outputs as inputs for different commands #14

Open
davidallendj opened this issue Mar 13, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@davidallendj
Copy link
Collaborator

davidallendj commented Mar 13, 2024

Is your feature request related to a problem? Please describe.
To add some flexibility to how Magellan is used, it would nice to be ability to pipe the output of certain commands as input into other ones. This would allow users to better control which parts of the process is needed and write one liners. For example...

If I want to do a scan and collect information about a BMC:

magellan scan | magellan collect

If I already have scanned information cached, do a collect and pass information to microservice using a separate command:

magellan collect | magellan <send|request> --url https://smd:27779/hsm/v2/

If I want to run the whole process with :

# maybe...?
magellan update --firmware-url $fwurl --firmware-version $fwversion --component $component && magellan scan | magellan collect | magellan <send|request> --url https://smd:27779/hsm/v2
# or...
magellan run --url https://smd:27779/hsm/v2h
@davidallendj davidallendj added the enhancement New feature or request label Mar 13, 2024
@davidallendj davidallendj changed the title [FEATURE] Allow using outputs as inputs for different commands [FEATURE] Allow piping outputs as inputs for different commands Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant