webcmd

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package webcmd provides CLI command for the web UI.

Package webcmd provides a web-based configuration UI for protobuild.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(configPath *string) *redant.Command

New creates the web command.

Types

type CommandResult

type CommandResult struct {
	Success bool   `json:"success"`
	Output  string `json:"output"`
	Error   string `json:"error,omitempty"`
}

CommandResult represents the result of a command execution.

type ProjectStats

type ProjectStats struct {
	ProtoFiles      int      `json:"proto_files"`
	TotalLines      int      `json:"total_lines"`
	MessageCount    int      `json:"message_count"`
	ServiceCount    int      `json:"service_count"`
	DependencyCount int      `json:"dependency_count"`
	PluginCount     int      `json:"plugin_count"`
	ProtoRoots      []string `json:"proto_roots"`
	VendorDir       string   `json:"vendor_dir"`
	VendorFiles     int      `json:"vendor_files"`
}

ProjectStats represents project statistics.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server represents the web server.

func NewServer

func NewServer(configPath string) (*Server, error)

NewServer creates a new web server.

func (*Server) Start

func (s *Server) Start(ctx context.Context, port int) error

Start starts the web server.

Jump to

Keyboard shortcuts

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