clisafe

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package clisafe contains helpers shared by every transport that pushes operator-supplied strings through a line-oriented CLI. Moving these out of flipper/ and marauder/ makes fixes land once, and is a prerequisite for future BLE / MCP transports that will need the same guarantees.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SanitizeArg

func SanitizeArg(s string) string

SanitizeArg strips bytes that would terminate or break out of a single CLI command line when interpolated: CR, LF, NUL, ETX (Ctrl+C), and the double-quote we use as a delimiter on quoted Marauder fields.

The scrubbed set is the union of what flipper and marauder have stripped historically — keeping one helper means a new escape byte only has to be added once.

Types

This section is empty.

Jump to

Keyboard shortcuts

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