Added sub commands for doing admin stuff
This commit is contained in:
parent
329de2f953
commit
4a6b79db17
18 changed files with 531 additions and 185 deletions
|
|
@ -10,6 +10,17 @@ const (
|
|||
PublishTargetTypeNetlify PublishTargetType = 2
|
||||
)
|
||||
|
||||
func ParsePublishTargetType(s string) (PublishTargetType, error) {
|
||||
switch s {
|
||||
case "localfs":
|
||||
return PublishTargetTypeLocalFS, nil
|
||||
case "netlify":
|
||||
return PublishTargetTypeNetlify, nil
|
||||
default:
|
||||
return PublishTargetTypeNone, nil
|
||||
}
|
||||
}
|
||||
|
||||
type Site struct {
|
||||
ID int64
|
||||
OwnerID int64
|
||||
|
|
@ -23,6 +34,7 @@ type Site struct {
|
|||
type SitePublishTarget struct {
|
||||
ID int64
|
||||
SiteID int64
|
||||
GUID string
|
||||
Enabled bool
|
||||
|
||||
BaseURL string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue