xml

package
v0.0.0-...-345b6a2 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 8 Imported by: 0

README

xml

output a pretty xml

Usage

show xml -h
NAME:
   show xml - xml beautify output

USAGE:
   show xml [command options] [arguments...]

DESCRIPTION:
   beautify and display a file or remote xml data
   eg:
   show xml --remote https://raw.githubusercontent.com/anqiansong/show/main/testdata/data.xml
   show xml --file data.xml

OPTIONS:
   --remote value, -r value  show xml from remote
   --file value, -f value    show xml from file
   --help, -h                show help (default: false)

Preview

xml highlight output

  • os: macOS
  • terminal: iTerm
  • theme: atom_bold_italic xml-highlighting

Note

xml does not support getting data for a given tag。

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cli.Command{
	Name:  "xml",
	Usage: "xml beautify output",
	Description: "beautify and display a file or remote xml data \n" +
		"eg:\n" +
		"show xml --remote https://raw.githubusercontent.com/anqiansong/show/main/testdata/data.xml\n" +
		"show xml --file data.xml",
	Action: actionXml,
	Flags: []cli.Flag{
		&cli.StringFlag{
			Name:    "remote",
			Usage:   "show xml from remote",
			Aliases: []string{"r"},
		},
		&cli.StringFlag{
			Name:    "file",
			Usage:   "show xml from file",
			Aliases: []string{"f"},
		},
	},
}

Command describes a subcommands in application.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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