Documentation ¶
Overview ¶
Package yaml is used to beautify the output of yaml. The yaml data can come from files, networks and linux pipelines, such as: show yaml --file data.yaml data.name means to view the data.name in the data.yaml file, show yaml- -remote https://raw.githubusercontent.com/anqiansong/show/main/testdata/data.yaml data.user.name represents view the name in the data.yaml, echo 'name: foo' | show yaml name represents view the data which key is name.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cli.Command{ Name: "yaml", Usage: "yaml beautify output", Description: "display a file or remote yaml data, you can display the yaml data you need by specifying the yaml field key, \n" + "if you don’t specify the key, the complete yaml data will be displayed\n" + "eg:\n" + "show yaml --remote https://raw.githubusercontent.com/anqiansong/show/main/testdata/data.yaml data.user\n" + "show yaml --file data.yaml", Action: actionYaml, Flags: []cli.Flag{ &cli.StringFlag{ Name: "remote", Usage: "show yaml from remote", Aliases: []string{"r"}, }, &cli.StringFlag{ Name: "file", Usage: "show yaml from file", Aliases: []string{"f"}, }, }, }
Command describes a subcommands in application.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.