info

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: 12 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

func NewCommand

func NewCommand() *cobra.Command

NewCommand creates a new info command.

Types

type Output

type Output struct {
	Name        string            `json:"name"`
	Version     string            `json:"version"`
	Author      string            `json:"author"`
	Description string            `json:"description"`
	Repository  string            `json:"repository"`
	License     string            `json:"license,omitempty"`
	Homepage    string            `json:"homepage,omitempty"`
	Tags        []string          `json:"tags,omitempty"`
	Entry       string            `json:"entry,omitempty"`
	Source      string            `json:"source"`
	InstalledAt time.Time         `json:"installed_at"`
	UpdatedAt   time.Time         `json:"updated_at"`
	Metadata    map[string]string `json:"metadata,omitempty"`
	Structure   StructureInfo     `json:"structure"`
}

Output represents the structured output format for JSON

type StructureInfo

type StructureInfo struct {
	DirectoryExists bool     `json:"directory_exists"`
	MarkdownExists  bool     `json:"markdown_exists"`
	HasCcmdYaml     bool     `json:"has_ccmd_yaml"`
	HasIndexMd      bool     `json:"has_index_md"`
	IsValid         bool     `json:"is_valid"`
	Issues          []string `json:"issues,omitempty"`
}

StructureInfo contains information about command structure integrity

Jump to

Keyboard shortcuts

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