core

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: 9 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateManifest

func CreateManifest(template []byte, manifest Manifest) *os.File

Types

type App added in v0.1.0

type App struct {
	Author         *models.AuthorFileProps `json:"author"`
	Organization   string                  `json:"organization"`
	OrganizationID string                  `json:"Organization_id"`
}

func GetApp added in v0.1.0

func GetApp() *App

func NewApp added in v0.1.0

func NewApp() *App

func (*App) GetTsconfig added in v0.1.0

func (ctx *App) GetTsconfig() (*models.TsconfigBase, error)

func (*App) InitAuthor added in v0.1.0

func (ctx *App) InitAuthor() error

func (*App) RemoveConfigurationsOnPackageError added in v0.1.0

func (ctx *App) RemoveConfigurationsOnPackageError(packageName string, packageType string) error

func (*App) UpdateAuthorMetadata added in v0.1.0

func (ctx *App) UpdateAuthorMetadata(author *models.AuthorFileProps) error

func (*App) UpdatePackage added in v0.1.0

func (ctx *App) UpdatePackage(packages *models.Package) error

func (*App) UpdateWorkspace added in v0.1.0

func (ctx *App) UpdateWorkspace(workspace *models.Workspace) error

type Config added in v0.1.0

type Config struct {
	RootDir  string            `json:"root,omitempty"`
	HomeDir  string            `json:"home,omitempty"`
	Progress progress.Writer   `json:"-"`
	Tracker  *progress.Tracker `json:"-"`
}

func GetConfig added in v0.1.0

func GetConfig() *Config

func NewConfig added in v0.1.0

func NewConfig() *Config

func (*Config) AddTracker added in v0.1.0

func (ctx *Config) AddTracker()

func (*Config) DoneProgress added in v0.1.0

func (ctx *Config) DoneProgress()

func (*Config) SetRootDir added in v0.1.0

func (ctx *Config) SetRootDir(path string)

func (*Config) TerminateErrorProgress added in v0.1.0

func (ctx *Config) TerminateErrorProgress(message string)

func (*Config) TerminateProgress added in v0.1.0

func (ctx *Config) TerminateProgress()

func (*Config) UpdateProgress added in v0.1.0

func (ctx *Config) UpdateProgress(message string, increment int64)

type Manifest

type Manifest struct {
	Name    string           `json:"name"`
	Scope   string           `json:"scope"`
	Repo    string           `json:"repo"`
	Scripts *ManifestScripts `json:"scripts"`
	Styles  []string         `json:"styles"`
	Docs    string           `json:"docs"`
	Version string           `json:"version"`
}

type ManifestScripts

type ManifestScripts struct {
	NoModule string `json:"nomodule"`
	Module   string `json:"module"`
}

Jump to

Keyboard shortcuts

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