skygragon / leetcode-cli

A cli tool to enjoy leetcode!
MIT License
3.65k stars 457 forks source link

[HELP] Is it possible to change the output file name for command "submission"?? #125

Closed rockyzhang24 closed 6 years ago

rockyzhang24 commented 6 years ago

When I run the command: leetcode submission 1, the generated output file name is two-sum.73790064.ac.cpp. I am wondering whether I can change the name such as two-sum.cpp (I just want to remove those series of numbers..)?

Thank you very much.

sfdye commented 6 years ago

Don't think there is. At least for me I had to manually rename each file or you can simply write a script to do that.

rockyzhang24 commented 6 years ago

@sfdye Okay, I see. Thanks.

skygragon commented 6 years ago

Yep, recently I'm considering to move those meta into code file, instead of messing filename as it is.

sfdye commented 6 years ago

Like to see that happen, e.g. python3 submission with py extension

skygragon commented 6 years ago

dup to #121 , let's track there

rockyzhang24 commented 6 years ago

Cool. Seems @skygragon is coming back to take care of this amazing but drowsy repo. Lol. You are away for a long time and we miss you. Really like leetcode-cli and really appreciate creating such a great tool. I hope this tool can be further polished.