platform

package
v0.0.11-beta Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package platform implements the platform dump subcommand for godyl. It displays information about the detected system platform.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(cfg *config.Config, files config.Embedded) *cobra.Command

NewCommand creates a cobra.Command instance for the platform dump subcommand.

Types

type Command

type Command struct {
	// Command is the platform cobra.Command instance
	Command *cobra.Command
	// Config contains application configuration
	Config *config.Config
	// Files contains the embedded configuration files and templates
	Files config.Embedded
}

Command encapsulates the platform dump command with its associated configuration.

func NewPlatformCommand

func NewPlatformCommand(cfg *config.Config, files config.Embedded) *Command

NewPlatformCommand creates a Command for displaying platform information.

func (*Command) Flags

func (cmd *Command) Flags()

Flags adds platform-specific flags to the command.

Jump to

Keyboard shortcuts

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