format

package
v2.54.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatScript

func FormatScript(input string, opts FormatOptions) (string, error)

FormatScript formats a shell script by adjusting -n flags for c8y commands

Types

type CmdFormat

type CmdFormat struct {
	*subcommand.SubCommand
	// contains filtered or unexported fields
}

func NewCmdFormat

func NewCmdFormat(f *cmdutil.Factory) *CmdFormat

type FormatOptions

type FormatOptions struct {
	AddComment bool
	Indent     int
}

FormatOptions represents the options for formatting

Jump to

Keyboard shortcuts

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