Documentation
¶
Index ¶
Constants ¶
View Source
const ( AppVersion = "0.0.2" TarballNameFormat = "%s-%s-dots-cli.tar.gz" LoginEndpoint = "login" AddPackageEndpoint = "add-package" PackagesEndpoint = "get-package" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandResult ¶
type GetPackagesResponse ¶
type GetPackagesResponse struct {
Code int `json:"Code"`
Message string `json:"Message"`
Data struct {
Packages []struct {
Id int `json:"Id"`
Name string `json:"Name"`
Version string `json:"Version"`
ArchiveName string `json:"ArchiveName"`
UserId int `json:"UserId"`
} `json:"Packages"`
} `json:"Data"`
}
type LoginResponse ¶
type Manifest ¶
type Manifest struct {
Id string
Name string
Author Author
Modified bool
Versions []Version
Apps []App
Remotes []RemoteAddr
Wallpapers []string
Screenshots []string
}
func NewManifest ¶
func NewManifest() Manifest
func (*Manifest) LastVersion ¶
func (*Manifest) OfferNewVersion ¶
func (manifest *Manifest) OfferNewVersion()
type Opts ¶
type Opts struct {
OutputDir string `short:"o" long:"output" description:"Output directory to initialize package in"`
PackageName string `short:"n" long:"name" description:"Package name"`
Version string `long:"version" description:"Package version"`
AuthorName string `long:"author-name" description:"Author name"`
AuthorEmail string `long:"author-email" description:"Author email"`
Installed bool `long:"installed" description:"Should app print only installed apps"`
WpPath string `short:"w" long:"wallpaper" description:"Wallpaper file path"`
Screenshot string `short:"s" long:"screenshots" description:"Screenshot file path"`
//AppName string `short:"a" long:"app" description:"App to add to package"`
Arguments []string
}
func (*Opts) NormalizeFlags ¶
func (opts *Opts) NormalizeFlags()
type RemoteAddr ¶
Click to show internal directories.
Click to hide internal directories.