NAME

App::VTide::Command::Run - Run a terminal command

VERSION

This documentation refers to App::VTide::Command::Run version 1.0.6

SYNOPSIS

  vtide run [(-n|--name) project] [--test] terminal
  vtide run [--help|--man]

OPTIONS:
 -n --name[=]str  The name of the terminal to run
 -T --test        Test the running of the terminal (shows the commands
                  that would be executed)
 -v --verbose     Show more verbose output.
    --help        Show this help
    --man         Show full documentation

DESCRIPTION

The run command runs a terminal with what ever is configured for that terminal. A full description of the terminal configuration can be found in "terminals" in App::VTide::Configuration.

SUBROUTINES/METHODS

run ()

Runs the terminal command

restart ( $cmd )

Checks if the terminal command should be restarted on exit (and asks if it should)

params ( $cmd )

Gets the configuration for the command $cmd

command ( $params )

Gets the command to execute, either a simple command or an "editor" command where the files are got from the groups

command_param ( $params )

Processes any found user parameters

_shell_quote ( $file )

Quote $file for shell execution

load_env ( %env )

Put the values of %env into the %ENV variable.

runit ( @cmd )

Executes a command (with --test skipping)

watch ( $cmd )

Watches files till they change then returns.

cron ( $cmd )

Runs the command based on cron tab settings in params

pretty_time ( $time )

Creates a mildly pretty version of the number of seconds

auto_complete ()

Auto completes terminal names

details_sub ()

Returns the commands details.

ATTRIBUTES

first

Track first run vs later runs (for things like waiting)

HOOKS

run_running ($cmd)

Called just before execution, the command that will be executed is passed and can be modified.

DIAGNOSTICS

CONFIGURATION AND ENVIRONMENT

DEPENDENCIES

INCOMPATIBILITIES

BUGS AND LIMITATIONS

There are no known bugs in this module.

Please report problems to Ivan Wills (ivan.wills@gmail.com).

Patches are welcome.

AUTHOR

Ivan Wills - (ivan.wills@gmail.com)

LICENSE AND COPYRIGHT

Copyright (c) 2016 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077). All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.