[ruby/irb] Add workspace category
(https://github.com/ruby/irb/pull/661) * Create a new Workspace command category * Update readme https://github.com/ruby/irb/commit/310650c213
This commit is contained in:
parent
382678d411
commit
f11ac06337
@ -13,7 +13,7 @@ module IRB
|
|||||||
module ExtendCommand
|
module ExtendCommand
|
||||||
|
|
||||||
class CurrentWorkingWorkspace < Nop
|
class CurrentWorkingWorkspace < Nop
|
||||||
category "IRB"
|
category "Workspace"
|
||||||
description "Show the current workspace."
|
description "Show the current workspace."
|
||||||
|
|
||||||
def execute(*obj)
|
def execute(*obj)
|
||||||
@ -22,7 +22,7 @@ module IRB
|
|||||||
end
|
end
|
||||||
|
|
||||||
class ChangeWorkspace < Nop
|
class ChangeWorkspace < Nop
|
||||||
category "IRB"
|
category "Workspace"
|
||||||
description "Change the current workspace to an object."
|
description "Change the current workspace to an object."
|
||||||
|
|
||||||
def execute(*obj)
|
def execute(*obj)
|
||||||
|
@ -12,7 +12,7 @@ module IRB
|
|||||||
|
|
||||||
module ExtendCommand
|
module ExtendCommand
|
||||||
class Workspaces < Nop
|
class Workspaces < Nop
|
||||||
category "IRB"
|
category "Workspace"
|
||||||
description "Show workspaces."
|
description "Show workspaces."
|
||||||
|
|
||||||
def execute(*obj)
|
def execute(*obj)
|
||||||
@ -21,7 +21,7 @@ module IRB
|
|||||||
end
|
end
|
||||||
|
|
||||||
class PushWorkspace < Workspaces
|
class PushWorkspace < Workspaces
|
||||||
category "IRB"
|
category "Workspace"
|
||||||
description "Push an object to the workspace stack."
|
description "Push an object to the workspace stack."
|
||||||
|
|
||||||
def execute(*obj)
|
def execute(*obj)
|
||||||
@ -31,7 +31,7 @@ module IRB
|
|||||||
end
|
end
|
||||||
|
|
||||||
class PopWorkspace < Workspaces
|
class PopWorkspace < Workspaces
|
||||||
category "IRB"
|
category "Workspace"
|
||||||
description "Pop a workspace from the workspace stack."
|
description "Pop a workspace from the workspace stack."
|
||||||
|
|
||||||
def execute(*obj)
|
def execute(*obj)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user