cmd

package
v2.25.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cmd wires up the service's CLI commands.

This package is responsible for registering the commands exposed by the `web` binary and connecting them to the dependency-injection graph used to construct and run the server.

Public API

The public surface of this package is intended to be small and stable:

  • RegisterServer registers the "server" command on a provided CLI commander.
  • Module is the DI module that assembles all dependencies required to run the server command.

Index

Constants

This section is empty.

Variables

Module wires this package into the dependency graph.

Functions

func RegisterServer

func RegisterServer(command cli.Commander)

RegisterServer registers the service's "server" command on the provided CLI commander.

The registered command starts the web server using the dependency-injection graph defined by `Module` in this package.

This function is intended to be called by the `main` package during application initialization.

Types

This section is empty.

Jump to

Keyboard shortcuts

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