Skip to content

Commit 8351ff5

Browse files
committed
Merge branch 'master' of github.com:abhinav-TB/cpp-template-generator
2 parents 9564cd1 + bf15e5c commit 8351ff5

2 files changed

Lines changed: 54 additions & 1 deletion

File tree

README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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+

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env ts-node
1+
// #!/usr/bin/env node
22
export {};
33
var inquirer = require('inquirer');
44
const fs=require('fs');

0 commit comments

Comments
 (0)