gpt-engineer icon indicating copy to clipboard operation
gpt-engineer copied to clipboard

Pass a flag in run command to keep the generated code hidden

Open ayush-vibrant opened this issue 1 year ago • 10 comments

Hey, I was thinking that we should add an optional flag to the run command. This flag would allow us to hide the generated code on the terminal. By doing so, the terminal output would appear cleaner, and the reader could easily understand what is happening just by reading the output. Currently, with both the code and instructions displayed, it looks cluttered.

That being said, if someone wants the code to be printed, it can still be displayed based on the flag value.

ayush-vibrant avatar Jun 14 '23 07:06 ayush-vibrant

Let me know if I can help in implementing this.

ayush-vibrant avatar Jun 14 '23 10:06 ayush-vibrant

good

bdfsght345 avatar Jun 14 '23 10:06 bdfsght345

good

IrmaEdmund avatar Jun 14 '23 12:06 IrmaEdmund

I believe this to be a good idea.

Please @ayush-vibrant fell free to provide a PR with this functionality.

I would suggest as inspiration something like --v/--vv/--vvv like many commands do to set the level of verbosity

If not that, maybe approaching it from "the other side" with an option such as --quiet Making the output very populated by default and if you provide this option then the output is fairly restricted.

cc @AntonOsika thoughts?

patillacode avatar Jun 16 '23 00:06 patillacode

@patillacode Looks like you removed yourself from this issue, Is this issue open to be picked up?

VijayKalmath avatar Jun 21 '23 04:06 VijayKalmath

Hello @VijayKalmath

Please feel free to pick this up.

patillacode avatar Jun 21 '23 12:06 patillacode

@VijayKalmath Are you picking this up? Otherwise I can pick it up.

@patillacode I do not have a key which has gpt-4 access, is there any turnaround to this? Or by any chance you have a spare key? (If it's not too much to ask)

ayush-vibrant avatar Jun 21 '23 12:06 ayush-vibrant

I wish I had one!!!

Also, giving a key to a stranger would not be recommended 😉

patillacode avatar Jun 21 '23 12:06 patillacode

Opened draft PR, @patillacode please assign this issue.

VijayKalmath avatar Jun 21 '23 13:06 VijayKalmath

Hahah @patillacode that's true. A man can try though!

But I see that @VijayKalmath has raised a PR. That's so cool.

ayush-vibrant avatar Jun 21 '23 17:06 ayush-vibrant

Hm I definitely think logging the code is worth it. Otherwise it's just "not doing anything" for a very long time.

Happy to have this reopened if someone has a good argument. Do not agree with "clutter" being sufficiently strong!

AntonOsika avatar Jun 25 '23 18:06 AntonOsika

Closing for now 🏃

AntonOsika avatar Jun 25 '23 18:06 AntonOsika