models

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Copyright (c) 2025 Guilherme Silva Sousa Licensed under the MIT License See LICENSE file in the project root for full license information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandMetadata

type CommandMetadata struct {
	Name        string   `yaml:"name" json:"name"`
	Version     string   `yaml:"version" json:"version"`
	Description string   `yaml:"description" json:"description"`
	Author      string   `yaml:"author" json:"author"`
	Repository  string   `yaml:"repository" json:"repository"`
	Entry       string   `yaml:"entry,omitempty" json:"entry,omitempty"`
	Tags        []string `yaml:"tags,omitempty" json:"tags,omitempty"`
	License     string   `yaml:"license,omitempty" json:"license,omitempty"`
	Homepage    string   `yaml:"homepage,omitempty" json:"homepage,omitempty"`
}

CommandMetadata represents the structure of a ccmd.yaml file

func (*CommandMetadata) MarshalJSON

func (cm *CommandMetadata) MarshalJSON() ([]byte, error)

MarshalJSON marshals CommandMetadata to JSON

func (*CommandMetadata) MarshalYAML

func (cm *CommandMetadata) MarshalYAML() ([]byte, error)

MarshalYAML marshals CommandMetadata to YAML

func (*CommandMetadata) UnmarshalJSON

func (cm *CommandMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals JSON data into CommandMetadata

func (*CommandMetadata) UnmarshalYAML

func (cm *CommandMetadata) UnmarshalYAML(data []byte) error

UnmarshalYAML unmarshals YAML data into CommandMetadata

func (*CommandMetadata) Validate

func (cm *CommandMetadata) Validate() error

Validate validates the command metadata

Jump to

Keyboard shortcuts

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