cmd

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Copyright © 2022 Websublime.dev organization@websublime.dev

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copyright © 2022 Websublime.dev organization@websublime.dev

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copyright © 2022 Websublime.dev organization@websublime.dev

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copyright © 2022 Websublime.dev organization@websublime.dev

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copyright © 2022 Websublime.dev organization@websublime.dev

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copyright © 2022 Websublime.dev organization@websublime.dev

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copyright © 2022 Websublime.dev organization@websublime.dev

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copyright © 2022 Websublime.dev organization@websublime.dev

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copyright © 2022 Websublime.dev organization@websublime.dev

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   string = "v0.1.9"
	BuildTime string = fmt.Sprintf("%d", time.Now().Unix())
)
View Source
var FileTemplates embed.FS

Functions

func Execute

func Execute()

func NewActionCmd

func NewActionCmd(cmdAction *ActionFlags) *cobra.Command

func NewCreateCmd

func NewCreateCmd(cmdCreate *CreateFlags) *cobra.Command

func NewLoginCmd added in v0.1.0

func NewLoginCmd(cmdLogin *LoginFlags) *cobra.Command

func NewRegisterCommand added in v0.1.0

func NewRegisterCommand(cmdReg *RegisterFlags) *cobra.Command

func NewRootCommand added in v0.1.0

func NewRootCommand() *cobra.Command

func NewStatusCmd added in v0.1.0

func NewStatusCmd(cmdStatus *StatusCommand) *cobra.Command

func NewWorkspaceCmd

func NewWorkspaceCmd(cmdWorkspace *CreateWorkspace) *cobra.Command

Types

type ActionFlags added in v0.1.0

type ActionFlags struct {
	Type        string                   `json:"type"`
	Environment string                   `json:"environment"`
	Sublime     models.SublimeViperProps `json:"-"`
	Packages    []models.SublimePackages `json:"-"`
}

func (*ActionFlags) DeployArtifacts added in v0.1.0

func (ctx *ActionFlags) DeployArtifacts()

func (*ActionFlags) Run added in v0.1.0

func (ctx *ActionFlags) Run(cmd *cobra.Command)

func (*ActionFlags) UpdatePackageVersion added in v0.1.0

func (ctx *ActionFlags) UpdatePackageVersion()

type CreateFlags added in v0.1.0

type CreateFlags struct {
	Name        string                   `json:"name"`
	Type        utils.PackageType        `json:"type"`
	Template    utils.TemplateType       `json:"template"`
	Description string                   `json:"description"`
	Sublime     models.SublimeViperProps `json:"-"`
	PackageDir  string                   `json:"-"`
	LibTypeDir  string                   `json:"-"`
}

func (*CreateFlags) CommandError added in v0.1.0

func (ctx *CreateFlags) CommandError(message string, errorType utils.ErrorType)

func (*CreateFlags) CreateCloudPackage added in v0.1.0

func (ctx *CreateFlags) CreateCloudPackage()

func (*CreateFlags) CreatePackage added in v0.1.0

func (ctx *CreateFlags) CreatePackage()

func (*CreateFlags) Run added in v0.1.0

func (ctx *CreateFlags) Run(cmd *cobra.Command)

func (*CreateFlags) UpdateRepoFiles added in v0.1.0

func (ctx *CreateFlags) UpdateRepoFiles()
func (ctx *CreateFlags) YarnLink()

type CreateWorkspace added in v0.1.0

type CreateWorkspace struct {
	Name         string `json:"name"`
	Repo         string `json:"repo"`
	Organization string `json:"organization"`
	Description  string `json:"description"`
	WorkspaceDir string `json:"-"`
}

func (*CreateWorkspace) BuildVitePlugin added in v0.1.0

func (ctx *CreateWorkspace) BuildVitePlugin()

func (*CreateWorkspace) CommandError added in v0.1.0

func (ctx *CreateWorkspace) CommandError(message string, errorType utils.ErrorType)

func (*CreateWorkspace) CreateCloudWorkspace added in v0.1.0

func (ctx *CreateWorkspace) CreateCloudWorkspace()

func (*CreateWorkspace) CreateWorkTree added in v0.1.0

func (ctx *CreateWorkspace) CreateWorkTree(cmd *cobra.Command)

func (*CreateWorkspace) InitGit added in v0.1.0

func (ctx *CreateWorkspace) InitGit()

func (*CreateWorkspace) InitYarn added in v0.1.0

func (ctx *CreateWorkspace) InitYarn()

func (*CreateWorkspace) Run added in v0.1.0

func (ctx *CreateWorkspace) Run(cmd *cobra.Command)

func (*CreateWorkspace) Workflows added in v0.1.0

func (ctx *CreateWorkspace) Workflows()

type LoginFlags added in v0.1.0

type LoginFlags struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

func (*LoginFlags) CommandError added in v0.1.0

func (ctx *LoginFlags) CommandError(message string, errorType utils.ErrorType)

func (*LoginFlags) LoginAuthor added in v0.1.0

func (ctx *LoginFlags) LoginAuthor()

func (*LoginFlags) Run added in v0.1.0

func (ctx *LoginFlags) Run(cmd *cobra.Command)

type RegisterFlags added in v0.1.0

type RegisterFlags struct {
	Name     string `json:"name,omitempty"`
	Username string `json:"username,omitempty"`
	Email    string `json:"email,omitempty"`
	Password string `json:"password,omitempty"`
	HomeDir  string `json:"-"`
}

func (*RegisterFlags) CommandError added in v0.1.0

func (ctx *RegisterFlags) CommandError(message string, errorType utils.ErrorType)

func (*RegisterFlags) RegisterAuthor added in v0.1.0

func (ctx *RegisterFlags) RegisterAuthor()

func (*RegisterFlags) Run added in v0.1.0

func (ctx *RegisterFlags) Run(cmd *cobra.Command)

type RootFlags added in v0.1.0

type RootFlags struct {
	ConfigFile string `json:"config_file"`
	Root       string `json:"root"`
}

type StatusCommand added in v0.1.0

type StatusCommand struct{}

func (*StatusCommand) Run added in v0.1.0

func (ctx *StatusCommand) Run(cmd *cobra.Command)

Jump to

Keyboard shortcuts

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