Class: DSP::RunInTerminalRequestArguments
- Defined in:
- lib/dsp/dsp_protocol.rb
Overview
interface RunInTerminalRequestArguments {
/** What kind of terminal to launch. */
kind?: 'integrated' | 'external';
/** Optional title of the terminal. */
title?: string;
/** Working directory of the command. */
cwd: string;
/** List of arguments. The first argument is the command to run. */
args: string[];
/** Environment key-value pairs that are added to or removed from the default environment. */
env?: {
[key: string]: string | null;
};
}
Instance Attribute Summary collapse
-
#args ⇒ Object
type: string with value ‘integrated’ | ‘external’ # type: string # type: string # type: string[] # type: {.
-
#cwd ⇒ Object
type: string with value ‘integrated’ | ‘external’ # type: string # type: string # type: string[] # type: {.
-
#env ⇒ Object
type: string with value ‘integrated’ | ‘external’ # type: string # type: string # type: string[] # type: {.
-
#kind ⇒ Object
type: string with value ‘integrated’ | ‘external’ # type: string # type: string # type: string[] # type: {.
-
#title ⇒ Object
type: string with value ‘integrated’ | ‘external’ # type: string # type: string # type: string[] # type: {.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ RunInTerminalRequestArguments
constructor
[key: string]: string | null; }.
Methods inherited from DSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ RunInTerminalRequestArguments
[key: string]: string | null;
}
787 788 789 790 |
# File 'lib/dsp/dsp_protocol.rb', line 787 def initialize(initial_hash = nil) super @optional_method_names = i[kind title env] end |
Instance Attribute Details
#args ⇒ Object
type: string with value ‘integrated’ | ‘external’ # type: string # type: string # type: string[] # type: {
782 783 784 |
# File 'lib/dsp/dsp_protocol.rb', line 782 def args @args end |
#cwd ⇒ Object
type: string with value ‘integrated’ | ‘external’ # type: string # type: string # type: string[] # type: {
782 783 784 |
# File 'lib/dsp/dsp_protocol.rb', line 782 def cwd @cwd end |
#env ⇒ Object
type: string with value ‘integrated’ | ‘external’ # type: string # type: string # type: string[] # type: {
782 783 784 |
# File 'lib/dsp/dsp_protocol.rb', line 782 def env @env end |
#kind ⇒ Object
type: string with value ‘integrated’ | ‘external’ # type: string # type: string # type: string[] # type: {
782 783 784 |
# File 'lib/dsp/dsp_protocol.rb', line 782 def kind @kind end |
#title ⇒ Object
type: string with value ‘integrated’ | ‘external’ # type: string # type: string # type: string[] # type: {
782 783 784 |
# File 'lib/dsp/dsp_protocol.rb', line 782 def title @title end |
Instance Method Details
#from_h!(value) ⇒ Object
792 793 794 795 796 797 798 799 800 |
# File 'lib/dsp/dsp_protocol.rb', line 792 def from_h!(value) value = {} if value.nil? self.kind = value['kind'] # Unknown type self.title = value['title'] self.cwd = value['cwd'] self.args = value['args'].map { |val| val } unless value['args'].nil? self.env = value['env'] # Unknown type self end |