multilinecmd

package
v0.0.0-...-b7a57f2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Split

func Split(cmd string) []string

Split splits a single-line "command" to a slice of commands.

It currently supports the following syntaxes:

Input:
  echo Hello
Output:
  [ "echo Hello", ]

Input:
  echo Hello
  some long \
    command \
    with multiple line-breaks
Output:
  [
    "echo Hello",
    "some long command with multiple line-breaks",
  ]

Types

This section is empty.

Jump to

Keyboard shortcuts

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