NAME

CohortExplorer::Command::History - CohortExplorer class to print command history

SYNOPSIS

history [OPTIONS]

hist [OPTIONS]

DESCRIPTION

This class is inherited from CLI::Framework::Command and overrides the following methods:

usage_text()

This method returns the usage information for the command.

option_spec()

(  
   [ 'show|s'  => 'show command history'  ],
   [ 'clear|c' => 'clear command history' ] 
)

validate( $opts, @args )

This method throws throw_cmd_validation_exception exception imported from CLI::Framework::Exceptions if

  • arguments are supplied to this command because this command does not accept any arguments, or

  • mutually exclusive options (i.e. show and clear) are specified together

run( $opts, @args )

This method performs option specific processing.

This class imports the variable $COMMAND_HISTORY from CohortExplorer::Command::Query to load user's saved commands. The history command enables the user to keep track of previously saved commands and use the information such as options and arguments to build new commands.

OPTIONS

-s, --show

Show history

-c, --clear

Clear history

DEPENDENCIES

CLI::Framework::Command

CLI::Framework::Exceptions

Exception::Class::TryCatch

SEE ALSO

CohortExplorer

CohortExplorer::Datasource

CohortExplorer::Command::Describe

CohortExplorer::Command::Find

CohortExplorer::Command::Query::Search

CohortExplorer::Command::Query::Compare

LICENSE AND COPYRIGHT

Copyright (c) 2013-2014 Abhishek Dixit (adixit@cpan.org). All rights reserved.

This program is free software: you can redistribute it and/or modify it under the terms of either:

  • the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version, or

  • the "Artistic Licence".

AUTHOR

Abhishek Dixit