NAME

KiokuDB::Cmd::OutputHandle - A role for command line tools with a --file option that will be used for write access.

DESCRIPTION

See KiokuDB::Cmd::Command::Dump for an example.

ATTRIBUTES

file

The file to open. A MooseX::Getopt enabled attribute.

force

Whether to allow overwriting of existing files. A MooseX::Getopt enabled attribute. When backup is enabled, allows overwriting of the backup file.

backup

Whether to backup before overwriting. A MooseX::Getopt enabled attribute.

backup_ext

Defaults to .bak. A MooseX::Getopt enabled attribute.

fh

This filehandle is created based on all the other attributes on demand.