Skip to content

Commit 7e15fa8

Browse files
committed
readme.md updated
1 parent 7ed5d79 commit 7e15fa8

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
func main() {
11-
version := "2.1.0"
11+
version := "2.1.1"
1212
doneChan := make(chan bool)
1313
filepath, modOrFile, cnf, command, help, init, name, oso, arch := controllers.LoadCMD("", "")
1414
filepath, modOrFile = controllers.ProgramStarting(&cnf, filepath, modOrFile, command, help, version, init, name, oso, arch)

readme.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ argument - `mod` , if file pass argument - `file`
2020
If you need help with clie use command `./godemon -help`
2121

2222
### Installing `godemon` with `installer.sh`
23-
1. `wget https://github.com/nProgrammer/godemon/releases/download/1.1.0/installer.sh`
23+
1. `wget https://github.com/nProgrammer/godemon/releases/download/x.x.x/installer.sh`
2424
2. `sudo chmod 777 ./installer.sh`
2525
3. `./installer.sh`
2626

@@ -38,7 +38,7 @@ If you need help with clie use command `./godemon -help`
3838
1. Create in project file `godemon-cnf.json`
3939
2. Create configuration of commands - sample code:
4040

41-
```
41+
```json
4242
{
4343
"commands": [
4444
{
@@ -49,4 +49,24 @@ If you need help with clie use command `./godemon -help`
4949
]
5050
}
5151
```
52-
3. Now use command: `godemon -cnf=cnf -command=<command-name>`
52+
3. Now create json file `projects.json`
53+
4. Create configuration of project - sample code:
54+
```json
55+
{
56+
"name": "godemon_test",
57+
"arch": "amd64",
58+
"os": "windows",
59+
"path": "/home/nwagner/Desktop/godemon_test"
60+
}
61+
```
62+
5. Now you can use 2 types of commands:
63+
64+
a) `godemon -cnf=cnf <command-name>`
65+
66+
b) `godemon -cnf=deploy`
67+
68+
Types of `-cnf`:
69+
70+
1. cnf - using `godemon-conf.json` to hot live reload
71+
2. deploy - using `projects.json` to compile program for many platforms
72+
3. cmd - to use this you need to pass parameters like - `-path -modOrFile ` allows you to easy hot live reloading

0 commit comments

Comments
 (0)