rcmd

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2020 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Overview

Package rcmd provides helper functions containing the logic of various root-xyz commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(oname string, fnames []string) error

Copy copies the content of the ROOT files fnames into the output ROOT file named oname.

func Diff

func Diff(w io.Writer, ref, chk *riofs.File, keys []string) error

Diff compares the values of the list of keys between the two provided ROOT files. Diff writes the differing data (if any) to w.

if w is nil, os.Stdout is used. if the slice of keys is nil, all keys are considered.

func Dump

func Dump(w io.Writer, fname string, deep bool, filter func(name string) bool) error

Dump dumps the content of the fname ROOT file to the provided io.Writer. If deep is true, Dump will recursively inspect directories and trees. Dump only display the content of ROOT objects satisfying the provided filter function.

If filter is nil, Dump will consider all ROOT objects.

func Merge

func Merge(oname string, fnames []string, verbose bool) error

Merge merges all input fnames ROOT files into the output oname one.

Types

This section is empty.

Jump to

Keyboard shortcuts

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