11
lxmcf
7y

How to know when you're bored?

You feel like building CLI based applications for social media like twitter (And i swear i didn't steal the idea form the devrant version of this)

Comments
  • 0
    I also wanna learn build CLI based app on Windows. Any starting point?
  • 3
    @sunfishcc probably just open up visual studio and create a blank command prompt application and mess around with the default functions from there
  • 2
    @sunfishcc
    Visual(VS) C++ in windows actually gives you a lot of control over the command prompt, there's an engine called olcConsoleGameEngine which uses the CMD for drawing :)

    You can get surprisingly good results...
  • 1
    @coolq I was thinking about run bash like commands to generating files. 🤦‍♂️
  • 1
    @sunfishcc
    Oh right, got carried away and thought you meant TUI.

    Yeah, you can get argument parsers which parse command line inputs that are given to your program. Or you can create your own. From Python I just like to make my own with "sys.argv", or sometimes I use the argparse library. It really depends on the programming language for this kind of thing.

    Any context? Bash scripts can accept command line arguments too :)
  • 1
    @coolq the basic idea is that I got couple of commonly used React templates. I want to run command line to generate new files based on some parameters, so I don't have to type the same thing over and over again 😂
  • 0
    @sunfishcc
    Haha, sounds simple enough :3
  • 1
    @coolq nothing too funcy. I will look into it if I got time tomorrow. (Sounds really bad 😓)
  • 1
    @sunfishcc
    Nahh, don't say that; tell me how it goes :)
  • 1
  • 1
    @coolq I take a look at express-generator. Seem use node.js is the correct way to doing this. Working on it now
Add Comment