commands

package
Version: v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2018 License: Artistic-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateVendorPri

func GenerateVendorPri(vendorDir string, pkg *common.PackageWrapper) error

Generates a vendor.pri inside vendorDir using the information contained in the package file and the dependencies

func HashPaths

func HashPaths(paths []string) (string, error)

func LoginPrompt

func LoginPrompt(ctx context.Context, client msg.QpmClient) (string, error)

func Prompt

func Prompt(prompt string, def string) chan string

func PromptPassword

func PromptPassword(prompt string) chan string

func Sign

func Sign(unsigned string, signer *openpgp.Entity) ([]byte, error)

func Verify

func Verify(payload string, signature []byte, pubkey *packet.PublicKey) error

Types

type BaseCommand

type BaseCommand struct {
	Ctx core.Context
}

func (BaseCommand) Error

func (bc BaseCommand) Error(err error)

func (BaseCommand) Fatal

func (bc BaseCommand) Fatal(msg string)

func (BaseCommand) Info

func (bc BaseCommand) Info(msg string)

func (BaseCommand) Log

func (bc BaseCommand) Log(msg string)

func (BaseCommand) Warning

func (bc BaseCommand) Warning(msg string)

type CheckCommand

type CheckCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

func NewCheckCommand

func NewCheckCommand(ctx core.Context) *CheckCommand

func (CheckCommand) Description

func (c CheckCommand) Description() string

func (*CheckCommand) RegisterFlags

func (c *CheckCommand) RegisterFlags(flags *flag.FlagSet)

func (*CheckCommand) Run

func (c *CheckCommand) Run() error

type HelpCommand

type HelpCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

func NewHelpCommand

func NewHelpCommand(ctx core.Context) *HelpCommand

func (HelpCommand) Description

func (h HelpCommand) Description() string

func (*HelpCommand) RegisterFlags

func (h *HelpCommand) RegisterFlags(flags *flag.FlagSet)

func (*HelpCommand) Run

func (h *HelpCommand) Run() error

type InfoCommand

type InfoCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

func NewInfoCommand

func NewInfoCommand(ctx core.Context) *InfoCommand

func (InfoCommand) Description

func (p InfoCommand) Description() string

func (*InfoCommand) RegisterFlags

func (p *InfoCommand) RegisterFlags(flags *flag.FlagSet)

func (*InfoCommand) Run

func (p *InfoCommand) Run() error

type InitCommand

type InitCommand struct {
	BaseCommand
	Pkg *common.PackageWrapper
}

func NewInitCommand

func NewInitCommand(ctx core.Context) *InitCommand

func (InitCommand) Description

func (ic InitCommand) Description() string

func (InitCommand) GenerateBoilerplate

func (ic InitCommand) GenerateBoilerplate() error

func (*InitCommand) GenerateLicense

func (ic *InitCommand) GenerateLicense() error

func (*InitCommand) RegisterFlags

func (ic *InitCommand) RegisterFlags(flag *flag.FlagSet)

func (*InitCommand) Run

func (ic *InitCommand) Run() error

type InstallCommand

type InstallCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

func NewInstallCommand

func NewInstallCommand(ctx core.Context) *InstallCommand

func (InstallCommand) Description

func (i InstallCommand) Description() string

func (*InstallCommand) RegisterFlags

func (i *InstallCommand) RegisterFlags(flags *flag.FlagSet)

func (*InstallCommand) Run

func (i *InstallCommand) Run() error

type ListCommand

type ListCommand struct {
	BaseCommand
}

func NewListCommand

func NewListCommand(ctx core.Context) *ListCommand

func (ListCommand) Description

func (sc ListCommand) Description() string

func (*ListCommand) RegisterFlags

func (sc *ListCommand) RegisterFlags(flags *flag.FlagSet)

func (*ListCommand) Run

func (sc *ListCommand) Run() error

type PingCommand

type PingCommand struct {
	BaseCommand
}

func NewPingCommand

func NewPingCommand(ctx core.Context) *PingCommand

func (PingCommand) Description

func (p PingCommand) Description() string

func (*PingCommand) RegisterFlags

func (p *PingCommand) RegisterFlags(flags *flag.FlagSet)

func (*PingCommand) Run

func (p *PingCommand) Run() error

type ProgressProxyReader

type ProgressProxyReader struct {
	io.Reader
	// contains filtered or unexported fields
}

func (*ProgressProxyReader) Read

func (r *ProgressProxyReader) Read(p []byte) (int, error)

type PublishCommand

type PublishCommand struct {
	BaseCommand
	PackageName string
}

func NewPublishCommand

func NewPublishCommand(ctx core.Context) *PublishCommand

func (PublishCommand) Description

func (p PublishCommand) Description() string

func (*PublishCommand) RegisterFlags

func (p *PublishCommand) RegisterFlags(flags *flag.FlagSet)

func (*PublishCommand) Run

func (p *PublishCommand) Run() error

type QRC_File

type QRC_File struct {
	XMLName xml.Name `xml:"file"`
	Content string   `xml:",chardata"`
}

type QRC_RCC

type QRC_RCC struct {
	XMLName   xml.Name       `xml:"RCC"`
	Resources []QRC_Resource `xml:"qresource"`
}

type QRC_Resource

type QRC_Resource struct {
	XMLName xml.Name   `xml:"qresource"`
	Prefix  string     `xml:"prefix,attr"`
	Files   []QRC_File `xml:"file"`
}

type SearchCommand

type SearchCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

func NewSearchCommand

func NewSearchCommand(ctx core.Context) *SearchCommand

func (SearchCommand) Description

func (sc SearchCommand) Description() string

func (*SearchCommand) RegisterFlags

func (sc *SearchCommand) RegisterFlags(flags *flag.FlagSet)

func (*SearchCommand) Run

func (sc *SearchCommand) Run() error

type SignCommand

type SignCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

func NewSignCommand

func NewSignCommand(ctx core.Context) *SignCommand

func (SignCommand) Description

func (s SignCommand) Description() string

func (*SignCommand) RegisterFlags

func (s *SignCommand) RegisterFlags(flags *flag.FlagSet)

func (*SignCommand) Run

func (s *SignCommand) Run() error

type UninstallCommand

type UninstallCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

func NewUninstallCommand

func NewUninstallCommand(ctx core.Context) *UninstallCommand

func (UninstallCommand) Description

func (u UninstallCommand) Description() string

func (*UninstallCommand) RegisterFlags

func (u *UninstallCommand) RegisterFlags(flags *flag.FlagSet)

func (*UninstallCommand) Run

func (u *UninstallCommand) Run() error

type VerifyCommand

type VerifyCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

func NewVerifyCommand

func NewVerifyCommand(ctx core.Context) *VerifyCommand

func (VerifyCommand) Description

func (v VerifyCommand) Description() string

func (*VerifyCommand) RegisterFlags

func (v *VerifyCommand) RegisterFlags(flags *flag.FlagSet)

func (*VerifyCommand) Run

func (v *VerifyCommand) Run() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL