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