Commit Graph

25 Commits

Author SHA1 Message Date
John Mair 1f3f6c6450 implemented system commands as regex command (in shell.rb), removed all traces of old system command code 2011-05-29 03:41:15 +12:00
John Mair 87ccf1d20a now passing capture args in a 1.8 friendly way: *(c + a) instead of (*c, *a) 2011-05-28 04:22:07 +12:00
John Mair e3af5f3a1a now passing capture groups in as arguments to commands (prior to regular arguments). Now stripping spaces around arg_string 2011-05-28 04:17:25 +12:00
John Mair 54de8361e2 many changes to plugins, command processor etc, just saving state 2011-05-23 19:11:41 +12:00
Rob Gleeson 7051c12730 Quash (most) warnings emitted by -w.
Two remain:

- two from method_source gem.
2011-05-19 19:07:40 +01:00
John Mair c7de349c02 added ni_arg_string and ni_val for non interpolated versions of val and arg_string command options 2011-05-06 15:40:18 +12:00
Mon ouïe b8cd918983 Now using command processor to run system commands 2011-04-29 18:14:48 +02:00
Mon ouïe b14be6c0c4 Added CommandContext#run 2011-04-25 23:13:36 +02:00
Mon ouïe 47fcdd17b1 Added a commands attribute to command contexts 2011-04-25 18:57:02 +02:00
Mon ouïe 0ecfe74ee4 Added CommandContext and made commands be run using it.
Cleaning commands and helpers up as well as fixing tests is still to be done.
2011-04-25 13:26:25 +02:00
John Mair cd2c8e2fb5 improved error message for system commands that return with error -- cant just assume command doenst exist, instead say that a problem occurred 2011-04-24 12:26:59 +12:00
John Mair 8f1d48236c juts doing a quick save 2011-04-23 04:01:31 +12:00
John Mair 263e722c2a resolved conflict, brought in injekt's awesome changes, added changes to README and fixed but in lesspipe broken pipes 2011-04-19 23:20:35 +12:00
epitron 0395da7e93 cd history fix 2011-04-18 18:35:46 -04:00
epitron 9dd31c29c4 'lesspipe' documentation, lcd/lls fixes, .cd history (allows 'lcd -' or '.cd -' to change to previous directory) 2011-04-18 18:33:42 -04:00
Lee Jarvis 3ff75dd20a whitespace cleanup in one hit 2011-04-18 22:31:39 +01:00
John Mair a5c2dec021 added highlighting to disabled commands in GNU bash, version 4.1.5(1)-release (i486-pc-linux-gnu)
These shell commands are defined internally.  Type `help' to see this list.
Type `help name' to find out more about the function `name'.
Use `info bash' to find out more about the shell in general.
Use `man -k' or `info' to find out more about commands not in this list.

A star (*) next to a name means that the command is disabled.

 job_spec [&]                                                  history [-c] [-d offset] [n] or history -anrw [filename] o>
 (( expression ))                                              if COMMANDS; then COMMANDS; [ elif COMMANDS; then COMMANDS>
 . filename [arguments]                                        jobs [-lnprs] [jobspec ...] or jobs -x command [args]
 :                                                             kill [-s sigspec | -n signum | -sigspec] pid | jobspec ...>
 [ arg... ]                                                    let arg [arg ...]
 [[ expression ]]                                              local [option] name[=value] ...
 alias [-p] [name[=value] ... ]                                logout [n]
 bg [job_spec ...]                                             mapfile [-n count] [-O origin] [-s count] [-t] [-u fd] [-C>
 bind [-lpvsPVS] [-m keymap] [-f filename] [-q name] [-u nam>  popd [-n] [+N | -N]
 break [n]                                                     printf [-v var] format [arguments]
 builtin [shell-builtin [arg ...]]                             pushd [-n] [+N | -N | dir]
 caller [expr]                                                 pwd [-LP]
 case WORD in [PATTERN [| PATTERN]...) COMMANDS ;;]... esac    read [-ers] [-a array] [-d delim] [-i text] [-n nchars] [->
 cd [-L|-P] [dir]                                              readarray [-n count] [-O origin] [-s count] [-t] [-u fd] [>
 command [-pVv] command [arg ...]                              readonly [-af] [name[=value] ...] or readonly -p
 compgen [-abcdefgjksuv] [-o option]  [-A action] [-G globpa>  return [n]
 complete [-abcdefgjksuv] [-pr] [-DE] [-o option] [-A action>  select NAME [in WORDS ... ;] do COMMANDS; done
 compopt [-o|+o option] [-DE] [name ...]                       set [--abefhkmnptuvxBCHP] [-o option-name] [arg ...]
 continue [n]                                                  shift [n]
 coproc [NAME] command [redirections]                          shopt [-pqsu] [-o] [optname ...]
 declare [-aAfFilrtux] [-p] [name[=value] ...]                 source filename [arguments]
 dirs [-clpv] [+N] [-N]                                        suspend [-f]
 disown [-h] [-ar] [jobspec ...]                               test [expr]
 echo [-neE] [arg ...]                                         time [-p] pipeline
 enable [-a] [-dnps] [-f filename] [name ...]                  times
 eval [arg ...]                                                trap [-lp] [[arg] signal_spec ...]
 exec [-cl] [-a name] [command [arguments ...]] [redirection>  true
 exit [n]                                                      type [-afptP] name [name ...]
 export [-fn] [name[=value] ...] or export -p                  typeset [-aAfFilrtux] [-p] name[=value] ...
 false                                                         ulimit [-SHacdefilmnpqrstuvx] [limit]
 fc [-e ename] [-lnr] [first] [last] or fc -s [pat=rep] [com>  umask [-p] [-S] [mode]
 fg [job_spec]                                                 unalias [-a] name [name ...]
 for NAME [in WORDS ... ] ; do COMMANDS; done                  unset [-f] [-v] [name ...]
 for (( exp1; exp2; exp3 )); do COMMANDS; done                 until COMMANDS; do COMMANDS; done
 function name { COMMANDS ; } or name () { COMMANDS ; }        variables - Names and meanings of some shell variables
 getopts optstring name [arg]                                  wait [id]
 hash [-lr] [-p pathname] [-dt] [name ...]                     while COMMANDS; do COMMANDS; done
 help [-dms] [pattern ...]                                     { COMMANDS ; }
2011-04-13 23:49:45 +12:00
John Mair 265d0928aa Added comments to command_processor.rb, added bold text to output from
`stat` command.
2011-04-13 21:16:38 +12:00
John Mair adc9661955 version 0.8.0pre5, Added special _file_ and _dir_ locals that are created when file-based
commands are run (e.g show-method, show-command, show-doc, whereami,
cat-file, etc) Can then be used like: `.cd #{_dir_}`. Fixed string interpolation so it's 1.8 compatible.
2011-04-08 23:00:38 +12:00
John Mair ad0e3b9d9f * got run command working by passing in extra 'target' argument. Got
command string interpolation working, so .cd #{my_dir} now works.
2011-04-08 21:10:49 +12:00
John Mair d111b19f82 fixed `run` command builder, now takes target parameter, also accepts system
commands.

Also:
* changed Rakefile to remove the -k flag from bacon test
* changed pry_instance attr_reader to attr_accessor in CommandProcessor class
* updated tests to reflect new `run` parameters
2011-04-08 16:09:47 +12:00
John Mair f026516673 version 0.8.0pre4, suppress output from command that dont have return
values. suppress output from all expressions that end in a ';'. Added
`gem-cd` command that chdir to the directory containing the gem files.
2011-04-08 02:13:16 +12:00
John Mair 1aa4a66ffc added more documentation, proper error message for failed .cd command, added -t option to cat-file command 2011-04-07 20:39:47 +12:00
John Mair 0da553688d version 0.8.0pre3, removed system(cmd) for system command 2011-04-07 19:53:50 +12:00
John Mair cfba7fee9e version 0.8.0pre2, refactored out command_processor.rb. fixed '?' as alias for show-doc
(needed to escape regex).
2011-04-07 19:05:22 +12:00