sf_cli 1.0.0.beta4 → 1.0.0.beta5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sf_cli/console/commands.rb +5 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0d747d19bb4e6c437c2314d83d2e11e138b8f3e241a43a59556fa7fad0829f6
|
4
|
+
data.tar.gz: 9474614d2da8a4bf6b7bc297d81d3221b90a13a65dba0727c1aa8067418bf37b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 951b09d44c48730ddb22fbe60b54b58179a4c5b34d42e2b374f5a68c291c1d5514dc735cd6a7585840cfaec1936d4b9187ab6846472d870142e502ddec1e8368
|
7
|
+
data.tar.gz: 4636eb0848036329af68fb63aec261e4eee191147d6c4327b4cc6ad4f4d516a8ae3c59239af0d969a0cbdc6ce6d8979e00984f90770167fe37e369bce2b3434c
|
@@ -10,12 +10,13 @@ module SfCli
|
|
10
10
|
# Developer Console commands
|
11
11
|
#
|
12
12
|
module Commands
|
13
|
-
def use(
|
14
|
-
target_org = _target_org.to_sym == :default ? nil : _target_org
|
13
|
+
def use(target_org)
|
15
14
|
org_info = sf.org.display target_org: target_org
|
16
|
-
|
15
|
+
#sf.org.login_web target_org: target_org, instance_url: org_info.instance_url unless org_info.connected?
|
17
16
|
|
18
17
|
conn = SfCli::Sf::Model::SfCommandConnection.new target_org: target_org, instance_url: org_info.instance_url
|
18
|
+
conn.open unless org_info.connected?
|
19
|
+
|
19
20
|
SfCli::Sf::Model.set_connection conn
|
20
21
|
|
21
22
|
available_models.each do |model|
|
@@ -62,7 +63,7 @@ module SfCli
|
|
62
63
|
conf.inspect_mode = false
|
63
64
|
puts <<~HELP
|
64
65
|
Available commands:
|
65
|
-
use --- set current org
|
66
|
+
use --- set current org. If you use your default org, this isn't needed.
|
66
67
|
gen --- generate Object model classes
|
67
68
|
query --- Query by SOQL with human readable format
|
68
69
|
apex --- run Apex code
|