xml_to_yaml

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "xml-to-yaml",
	Short: "Transform XML snippet to YAML",
	Long:  `This command reads XML (form stdin) and outputs YAML (to stdout)`,
	RunE: func(cmd *cobra.Command, args []string) error {
		var err error
		yamlText, err := utils.XMLText2YAMLText(bufio.NewReader(os.Stdin))
		if err != nil {
			return err
		}

		fmt.Printf("%s\n", string(yamlText))
		return nil
	},
}

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