Green-Software-Foundation / if

Impact Framework
https://if.greensoftware.foundation/
MIT License
157 stars 41 forks source link

Implement --stdout flag #503

Closed jmcook1186 closed 7 months ago

jmcook1186 commented 8 months ago

Rationale

We want a CLI flag that toggles printing outputs to the console. Currently we have the option to print to the console as an automatic outcome from omitting the --output command in the CLI and export config in the manifest file. We would prefer to be able to trigger the outputs being printed to the console from the CLI only, with a simple --stdout flag.

Implementation details

Priority

5/5

Scope

Expect these changes to be confined to src/index.ts, utils/args.ts and lib/exhaust.ts.

Size

0.5 d for one person

Does this require updates to documentation or other materials??

yes, website docs require updating - this can be a separate PR

Deadline

Check-in on Wed 10th April

Acceptance criteria

CLI flag exists and works as expected Unit tests added covering the new feature Existing unit tests and integration tests pass CI/CD passes PR passes dev and QA review

abhinavbansal19961996 commented 7 months ago

Hey @jmcook1186 We are interested in working on it. Is it available to be picked up? Shall we pick this up as part of hackathon https://github.com/Green-Software-Foundation/hack/wiki/Frequently-Asked-Questions?

jmcook1186 commented 7 months ago

HI @abhinavbansal19961996 you can take this if you like. I'll add some more details to the ticket now so the intended outcomes are clear. Then, if you still want to work on it, I'll assign it to you.

abhinavbansal19961996 commented 7 months ago

@jmcook1186 Yes Interested. Can you pls assign it to me. Then I will register for correponding hackathon project also. We are total 2 members who will be working on it.

abhinavbansal19961996 commented 7 months ago

Thanks. Working on it.

abhinavbansal19961996 commented 7 months ago

I have raised the PR: https://github.com/Green-Software-Foundation/if/pull/575 @jmcook1186 Can you pls review?