Skip to content

Commit f5f4fcc

Browse files
committed
Look at Changes.txt
1 parent af1aec1 commit f5f4fcc

File tree

7 files changed

+43
-21
lines changed

7 files changed

+43
-21
lines changed

CHANGELOGS/Changelog-21-04-03-03-2021.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

CHANGELOGS/Changelog-21-04-05-03-2021.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOGS/Changelog-21-04-10-03-2021.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

CHANGELOGS/Changelog-21-06-11-03-2021.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

CHANGELOGS/Changelog-21-06-19-03-2021.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOGS/Changes.txt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
CHANGES: 21-04-03-03-2021
2+
- Added function that edit the 'project.json' by using CLI tools
3+
- Models package refactored - created files:
4+
1. command.go
5+
2. error.go
6+
3. file.go
7+
4. project.go
8+
5. var.go
9+
- Added changelogs directory
10+
11+
CHANGES: 21-04-05-03-2021
12+
- Created new help section
13+
14+
CHANGES: 21-04-10-03-2021
15+
- README.md updated
16+
- Added CLI editing of project.json
17+
- Bugs fixed
18+
- Created release
19+
20+
CHANGES: 21-06-11-03-2021
21+
- Updated version,
22+
- Added possibility of updating Variables in project.json by using CLI
23+
- Added possibility of updating project info
24+
- Code refactored, added file:
25+
- update.go
26+
- Readme.md updated
27+
- Error handling and added log about that work is done
28+
29+
CHANGES: 21-06-19-03-2021
30+
- Deleted unnecessary messages
31+
- Added changelogs passing to CLI

cliTools/loadFlags.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import (
44
"flag"
55
"github.com/fatih/color"
66
"go/build"
7+
"os"
8+
"os/exec"
79
)
810

911
func LoadCMD(filepath string, modOrFile string) (string, string, string, string, *bool, bool, string, string, string, string, bool, bool, bool, string, string, bool, bool, bool) {
@@ -28,7 +30,17 @@ func LoadCMD(filepath string, modOrFile string) (string, string, string, string,
2830
updateName := flag.Bool("updateName", false, "a bool")
2931
updateArch := flag.Bool("updateArch", false, "a bool")
3032
updateOS := flag.Bool("updateOS", false, "a bool")
33+
changes := flag.Bool("logChanges", false, "a bool")
3134
flag.Parse()
35+
if *changes == true {
36+
godemonPath := os.Getenv("GODEMON")
37+
path := godemonPath + "/CHANGELOGS/Changes.txt"
38+
cmd := exec.Command("cat", path)
39+
cmd.Stdout = os.Stdout
40+
cmd.Stderr = os.Stderr
41+
cmd.Run()
42+
os.Exit(1)
43+
}
3244
cnf := ""
3345
modOrFile = ""
3446
if *mod == true {

0 commit comments

Comments
 (0)