File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ## CPP-TEMPLATE-GENERATOR
2+ A minimalistic c++ template generator which can save you some time in coding contests and class works.
3+
4+ INSTALLATION
5+
6+ clone this repo
7+
8+
9+ git clone https://github.com/abhinav-TB/cpp-template-generator.git
10+
11+ ## SETUP
12+
13+ LINUX AND MAC
14+
15+ - change directory to cloned repo
16+ ` cd cpp-template-generator `
17+
18+ - run the following commands
19+
20+ ` chmod +x script.sh `
21+
22+ ` ./script.sh `
23+
24+ ` npm install `
25+
26+ ` npm link `
27+
28+
29+ > note: if you get an access denied error use sudo before that command
30+
31+ windows and repl installation will be updated soon
32+
33+ ## USAGE
34+
35+ `cpp-create <file name>`
36+ it will list the available templates and you can choose one
37+ and the template will be created for you in your current directory
38+
39+ ## CUSTOM TEMPLATE
40+
41+ The package comes with some default templates in the cpp_templates directory,you can edit that or add your own custom ones.
42+ ones you finish editing run the following command
43+ .` /script.sh `
44+ if you are running this for the first time, make sure it is executable by using the command ```` chmod +x script.sh ```` before executing it
45+
46+
47+
48+
49+
50+
51+
52+
53+
Original file line number Diff line number Diff line change 1- #!/usr/bin/env ts- node
1+ // #!/usr/bin/env node
22export { } ;
33var inquirer = require ( 'inquirer' ) ;
44const fs = require ( 'fs' ) ;
You can’t perform that action at this time.
0 commit comments