Added sub commands for doing admin stuff

This commit is contained in:
Leon Mika 2026-02-28 10:39:08 +11:00
parent 329de2f953
commit 4a6b79db17
18 changed files with 531 additions and 185 deletions

View file

@ -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