mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-12 02:55:16 +00:00
Restructured command config
Removed go/build reference in clean
This commit is contained in:
10
model/command/build.go
Normal file
10
model/command/build.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package command
|
||||
type (
|
||||
Build struct {
|
||||
ImportCommand
|
||||
TargetPath string `short:"t" long:"target-path" description:"Path to target folder. Folder will be completely deleted if it exists" required:"false"`
|
||||
Mode string `short:"m" long:"run-mode" description:"The mode to run the application in"`
|
||||
CopySource bool `short:"s" long:"include-source" description:"Copy the source code as well"`
|
||||
}
|
||||
|
||||
)
|
||||
6
model/command/clean.go
Normal file
6
model/command/clean.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package command
|
||||
type (
|
||||
Clean struct {
|
||||
ImportCommand
|
||||
}
|
||||
)
|
||||
7
model/command/import_command.go
Normal file
7
model/command/import_command.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package command
|
||||
|
||||
type (
|
||||
ImportCommand struct {
|
||||
ImportPath string `short:"a" long:"application-path" description:"Path to application folder" required:"false"`
|
||||
}
|
||||
)
|
||||
11
model/command/new.go
Normal file
11
model/command/new.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package command
|
||||
type (
|
||||
New struct {
|
||||
ImportCommand
|
||||
SkeletonPath string `short:"s" long:"skeleton" description:"Path to skeleton folder (Must exist on GO PATH)" required:"false"`
|
||||
Package string `short:"p" long:"package" description:"The package name, this becomes the repfix to the app name, if defined vendored is set to true" required:"false"`
|
||||
NotVendored bool `short:"V" long:"vendor" description:"True if project should not be configured with a go.mod"`
|
||||
Run bool `short:"r" long:"run" description:"True if you want to run the application right away"`
|
||||
}
|
||||
|
||||
)
|
||||
9
model/command/package.go
Normal file
9
model/command/package.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package command
|
||||
type (
|
||||
Package struct {
|
||||
ImportCommand
|
||||
TargetPath string `short:"t" long:"target-path" description:"Full path and filename of target package to deploy" required:"false"`
|
||||
Mode string `short:"m" long:"run-mode" description:"The mode to run the application in"`
|
||||
CopySource bool `short:"s" long:"include-source" description:"Copy the source code as well"`
|
||||
}
|
||||
)
|
||||
9
model/command/run.go
Normal file
9
model/command/run.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package command
|
||||
type (
|
||||
Run struct {
|
||||
ImportCommand
|
||||
Mode string `short:"m" long:"run-mode" description:"The mode to run the application in"`
|
||||
Port int `short:"p" long:"port" default:"-1" description:"The port to listen" `
|
||||
NoProxy bool `short:"n" long:"no-proxy" description:"True if proxy server should not be started. This will only update the main and routes files on change"`
|
||||
}
|
||||
)
|
||||
9
model/command/test_command.go
Normal file
9
model/command/test_command.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package command
|
||||
|
||||
type (
|
||||
Test struct {
|
||||
ImportCommand
|
||||
Mode string `short:"m" long:"run-mode" description:"The mode to run the application in"`
|
||||
Function string `short:"f" long:"suite-function" description:"The suite.function"`
|
||||
}
|
||||
)
|
||||
7
model/command/version.go
Normal file
7
model/command/version.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package command
|
||||
type (
|
||||
Version struct {
|
||||
ImportCommand
|
||||
Update bool `short:"u" long:"Update the framework and modules" required:"false"`
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user