-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactioring, Test coverage up to 98.6% of statements
- Loading branch information
Vic Shóstak
committed
Jun 20, 2020
1 parent
d10c390
commit 6436ff4
Showing
17 changed files
with
377 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,19 @@ | ||
package main | ||
|
||
import "github.com/create-go-app/cli/internal/cgapp" | ||
import ( | ||
"log" | ||
"os" | ||
|
||
var ( | ||
// cgapp CLI version | ||
version string = "0.8.2" | ||
|
||
// Templates registry | ||
registry = map[string]string{ | ||
// Backend templates | ||
"default": "create-go-app/net_http-go-template", | ||
"echo": "create-go-app/echo-go-template", | ||
"fiber": "create-go-app/fiber-go-template", | ||
|
||
// Frontend templates | ||
"react-js": "create-go-app/react-js-template", | ||
"react-ts": "create-go-app/react-ts-template", | ||
"preact": "create-go-app/preact-js-template", | ||
|
||
// Docker containers | ||
"nginx": "create-go-app/nginx-certbot-docker", | ||
"postgres": "create-go-app/postgres-docker", | ||
} | ||
"github.com/create-go-app/cli/pkg/cgapp" | ||
) | ||
|
||
func main() { | ||
// Start new CLI app | ||
cgapp.New(version, registry) | ||
cli, err := cgapp.New() | ||
if err != nil { | ||
log.Fatal(err) | ||
} | ||
|
||
// Run new CLI | ||
cli.Run(os.Args) | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.