Module: SfCli::Sf::Core::OrgBase

Includes:
Base
Included in:
Org::Core
Defined in:
lib/sf_cli/sf/core/org_base.rb

Instance Method Summary collapse

Instance Method Details

#org_exec(action, flags: {}, switches: {}, redirection: nil, raw_output: false) ⇒ Object



7
8
9
10
11
# File 'lib/sf_cli/sf/core/org_base.rb', line 7

def org_exec(action, flags: {}, switches: {}, redirection: nil, raw_output: false)
  fmt = raw_output ? :human : :json
  redirect_type = raw_output ? nil : :null_stderr
  exec(action, flags: flags, switches: switches, redirection: redirect_type, raw_output: raw_output, format: fmt)
end