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 ¶
- Variables
- func Execute()
- func NewActionCmd(cmdAction *ActionFlags) *cobra.Command
- func NewCreateCmd(cmdCreate *CreateFlags) *cobra.Command
- func NewLoginCmd(cmdLogin *LoginFlags) *cobra.Command
- func NewRegisterCommand(cmdReg *RegisterFlags) *cobra.Command
- func NewRootCommand() *cobra.Command
- func NewStatusCmd(cmdStatus *StatusCommand) *cobra.Command
- func NewWorkspaceCmd(cmdWorkspace *CreateWorkspace) *cobra.Command
- type ActionFlags
- type CreateFlags
- type CreateWorkspace
- func (ctx *CreateWorkspace) BuildVitePlugin()
- func (ctx *CreateWorkspace) CommandError(message string, errorType utils.ErrorType)
- func (ctx *CreateWorkspace) CreateCloudWorkspace()
- func (ctx *CreateWorkspace) CreateWorkTree(cmd *cobra.Command)
- func (ctx *CreateWorkspace) InitGit()
- func (ctx *CreateWorkspace) InitYarn()
- func (ctx *CreateWorkspace) Run(cmd *cobra.Command)
- func (ctx *CreateWorkspace) Workflows()
- type LoginFlags
- type RegisterFlags
- type RootFlags
- type StatusCommand
Constants ¶
This section is empty.
Variables ¶
var ( Version string = "v0.1.9" BuildTime string = fmt.Sprintf("%d", time.Now().Unix()) )
var FileTemplates embed.FS
Functions ¶
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 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 (*CreateFlags) YarnLink ¶ added in v0.1.0
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
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 StatusCommand ¶ added in v0.1.0
type StatusCommand struct{}
func (*StatusCommand) Run ¶ added in v0.1.0
func (ctx *StatusCommand) Run(cmd *cobra.Command)