101件ヒット
[1-100件を表示]
(0.018秒)
ライブラリ
- ビルトイン (11)
- shell (6)
-
shell
/ command-processor (84)
クラス
- Shell (6)
-
Shell
:: CommandProcessor (84)
モジュール
- Process (11)
キーワード
-
add
_ delegate _ command _ to _ shell (6) -
alias
_ command (12) -
alias
_ map (6) -
def
_ builtin _ commands (6) -
def
_ system _ command (6) - exec (11)
- initialize (6)
-
install
_ builtin _ commands (6) -
install
_ system _ commands (6) -
method
_ added (6) - new (6)
-
run
_ config (6) -
unalias
_ command (6) -
undef
_ system _ command (12)
検索結果
先頭5件
- Shell
:: CommandProcessor . def _ system _ command(command , path = command) -> () - Shell
:: CommandProcessor . alias _ command(alias , command , *opts) -> self - Shell
:: CommandProcessor . alias _ command(alias , command , *opts) { . . . } -> self - Shell
:: CommandProcessor . undef _ system _ command(command) -> self - Shell
:: CommandProcessor . def _ builtin _ commands(delegation _ class , commands _ specs) -> ()
-
Shell
:: CommandProcessor . def _ system _ command(command , path = command) -> () (12322.0) -
@todo
...@todo
与えられたコマンドをメソッドとして定義します。
@param command 定義したいコマンドを指定します。
@param path command のパスを指定します。省略すると環境変数 PATH から command を探します。... -
Shell
:: CommandProcessor . alias _ command(alias , command , *opts) -> self (12211.0) -
@todo
...@todo
@param alias エイリアスの名前を指定します。
@param command コマンド名を指定します。
@param opts コマンドに与えるオプションを指定します。
@raise SyntaxError コマンドのエイリアス作成に失敗した時に発生します。... -
Shell
:: CommandProcessor . alias _ command(alias , command , *opts) { . . . } -> self (12211.0) -
@todo
...@todo
@param alias エイリアスの名前を指定します。
@param command コマンド名を指定します。
@param opts コマンドに与えるオプションを指定します。
@raise SyntaxError コマンドのエイリアス作成に失敗した時に発生します。... -
Shell
:: CommandProcessor . undef _ system _ command(command) -> self (12209.0) -
与えられたコマンドを削除します。
...与えられたコマンドを削除します。
@param command 削除したいコマンド名を指定します。... -
Shell
:: CommandProcessor . def _ builtin _ commands(delegation _ class , commands _ specs) -> () (12201.0) -
@todo
...@todo
@param delegation_class 処理を委譲したいクラスかモジュールを指定します。
@param commands_specs コマンドの仕様を文字列の配列で指定します。
[[コマンド名, [引数1, 引数2, ...]], ...]... -
Shell
:: CommandProcessor . add _ delegate _ command _ to _ shell(id) (12102.0) -
@todo
@todo
Shell 自体を初期化する時に呼び出されるメソッドです。
ユーザが使用することはありません。
@param id メソッド名を指定します。 -
Shell
:: CommandProcessor . unalias _ command(alias) -> self (12102.0) -
エイリアスを削除します。
エイリアスを削除します。
@param alias 削除したいエイリアスを指定します。 -
Shell
:: CommandProcessor . install _ builtin _ commands -> () (12101.0) -
ビルトインコマンドを定義します。
ビルトインコマンドを定義します。 -
Shell
:: CommandProcessor . install _ system _ commands(prefix = "sys _ ") -> () (12101.0) -
全てのシステムコマンドをメソッドとして定義します。
全てのシステムコマンドをメソッドとして定義します。
既に定義されているコマンドを再定義することはありません。
デフォルトでは全てのコマンドに "sys_" というプレフィクスが付きます。
また、メソッド名として使用できない文字は全て "_" に置換してメソッドを定義します。
このメソッドの実行中に発生した例外は単に無視されます。
@param prefix プレフィクスを指定します。 -
Shell
. undef _ system _ command(command) -> Shell :: CommandProcessor (6437.0) -
commandを削除します.
...
commandを削除します.
@param command 削除するコマンドの文字列を指定します。
動作例:
require 'shell'
Shell.def_system_command("ls")
# ls を定義
Shell.undef_system_command("ls")
# ls を 削除
sh = Shell.new
begin
sh.transact {
ls("-l").each... -
Shell
:: CommandProcessor . alias _ map -> Hash (6017.0) -
Shell::CommandProcessor.alias_command で定義したエイリアスの一覧を返します。
...Shell::CommandProcessor.alias_command で定義したエイリアスの一覧を返します。... -
Shell
:: CommandProcessor . initialize -> () (6001.0) -
@todo
@todo
このクラスを初期化します。 -
Shell
:: CommandProcessor . method _ added(id) (6001.0) -
@todo このクラスに定義されたメソッドを Shell にも定義するためのフックです。
@todo
このクラスに定義されたメソッドを Shell にも定義するためのフックです。
@param id メソッド名を指定します。 -
Shell
:: CommandProcessor . new(shell) (6001.0) -
@todo
@todo -
Shell
:: CommandProcessor . run _ config -> () (6001.0) -
ユーザのホームディレクトリに "~/.rb_shell" というファイルが存在すれば、それを Kernel.#load します。
ユーザのホームディレクトリに "~/.rb_shell" というファイルが存在すれば、それを Kernel.#load します。
存在しない時は何もしません。 -
Process
. exec(command , *args) -> () (3138.0) -
カレントプロセスを与えられた外部コマンドで置き換えます。
...合、command が shell のメタ文字
//emlist{
* ? {} [] <> () ~ & | \ $ ; ' ` " \n
//}
を含む場合、shell 経由で実行されます。
そうでなければインタプリタから直接実行されます。
引数が複数与えられた場合、第 2 引数以降は command に直接......場合、command はサブシェル経由で実行されます。
そうでない場合、command は exec(2) を使用して実行されるので元の
プログラムからいくつかの環境を引き継ぎます。
@param command 実行する外部コマンド。
@param args command に渡す...