Skip to content

Commit 6ca1a65

Browse files
committed
Code updated
2 parents e889789 + 3d842a6 commit 6ca1a65

File tree

4 files changed

+22
-7
lines changed

4 files changed

+22
-7
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
- Added function that edit the 'project.json' by using CLI tools
2+
- Models package refactored - created files:
3+
1. command.go
4+
2. error.go
5+
3. file.go
6+
4. project.go
7+
5. var.go
8+
- Added changelogs directory
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Created new help section

main.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
//TODO - add windows full support
2-
//TODO - create Windows installer
3-
//TODO - golang delve support
4-
//TODO - create new README.md
5-
//TODO - create new WIKI
6-
//TODO - add CMD option support
1+
//TODO - create Windows installer - Patryk
2+
//TODO - create new README.md - Norbert
3+
//TODO - create new WIKI - Norbert
74

5+
//TODO - WebPage
6+
7+
//TODO - 21.06 - golang delve support
88
package main
99

1010
import (

models/staticCLI.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ import (
88

99
func HelpCLI(version string) {
1010
color.Green("Godemon %v:", version)
11-
fmt.Println("to do -cnf -cmd -deploy -path -command -help -init -name -os -arch -mod -file")//("\n 1. -cnf <- in this flag put info about what do you want to do - if use cmd just -cmd option, if config file use -cnf \n2. -path <- path to file/directory \n 3. -modOrFile <- are you using modules or one file \n 4. -command <- binded command in config file \n 5. -name <- name of project \n 6. -os <- OS platform \n 7. -arch <- architecture \n 8. -init <- initializazition of project \n\n Have a problem? Go on my GitHub and see the README.md - https://github.com/Godemon-simplify-your-Go-programming/godemon \n")
11+
fmt.Printf("\nWhat flags do we have in Godemon? \n 1. Methods of godemon's runtime:" +
12+
"\n a) -cnf - using project.json file to load godemon project specifications,\n b) -cmd - manualy passing godemon project specification using the CLI,\n c) -deploy - deploying the project using specifications from project.json or CLI\n" +
13+
" 2. Other flags:\n a) -path - path to file or dir,\n b) -mod - specyfing that runtime option is using go modules,\n" +
14+
" c) -file - specyfing that runtime option is using single go file,\n d) -os - specyfing the GOOS,\n" +
15+
" e) -arch - specyfing the GOARCH,\n f) -name - specyfing the name of project/command/file\n" +
16+
" 3. project.json initialization and update:\n a) -init - initializating the project.json and go module,\n" +
17+
" b) -addCmd - adding command to project.json,\n c) -addFile - adding file to project.json") //("\n 1. -cnf <- in this flag put info about what do you want to do - if use cmd just -cmd option, if config file use -cnf \n2. -path <- path to file/directory \n 3. -modOrFile <- are you using modules or one file \n 4. -command <- binded command in config file \n 5. -name <- name of project \n 6. -os <- OS platform \n 7. -arch <- architecture \n 8. -init <- initializazition of project \n\n Have a problem? Go on my GitHub and see the README.md - https://github.com/Godemon-simplify-your-Go-programming/godemon \n")
1218
os.Exit(1)
1319
}

0 commit comments

Comments
 (0)