gibson-cli 0.3.2__py3-none-any.whl → 0.3.4__py3-none-any.whl
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.
- gibson/command/rewrite/Rewrite.py +1 -1
- gibson/core/Configuration.py +12 -1
- gibson/core/Conversation.py +0 -3
- gibson/services/auth/Server.py +4 -1
- {gibson_cli-0.3.2.dist-info → gibson_cli-0.3.4.dist-info}/METADATA +1 -1
- {gibson_cli-0.3.2.dist-info → gibson_cli-0.3.4.dist-info}/RECORD +9 -9
- {gibson_cli-0.3.2.dist-info → gibson_cli-0.3.4.dist-info}/WHEEL +0 -0
- {gibson_cli-0.3.2.dist-info → gibson_cli-0.3.4.dist-info}/entry_points.txt +0 -0
- {gibson_cli-0.3.2.dist-info → gibson_cli-0.3.4.dist-info}/top_level.txt +0 -0
@@ -47,7 +47,7 @@ class Rewrite(BaseCommand):
|
|
47
47
|
customization_manager = CustomizationManager(self.configuration).preserve()
|
48
48
|
|
49
49
|
try:
|
50
|
-
if self.wipe is True:
|
50
|
+
if argument is None and self.wipe is True:
|
51
51
|
for root, dirs, files in os.walk(
|
52
52
|
os.path.expandvars(self.configuration.project.dev.base.path)
|
53
53
|
):
|
gibson/core/Configuration.py
CHANGED
@@ -341,7 +341,18 @@ class Configuration:
|
|
341
341
|
return self
|
342
342
|
|
343
343
|
def login(self):
|
344
|
-
|
344
|
+
server = AuthServer(self.app_domain())
|
345
|
+
|
346
|
+
self.conversation.newline()
|
347
|
+
self.conversation.type("We're opening your web browser to the login page.\n")
|
348
|
+
self.conversation.type("Please log in and then return to this window.\n")
|
349
|
+
self.conversation.type(
|
350
|
+
"If your browser does not open automatically, visit this URL:\n"
|
351
|
+
)
|
352
|
+
self.conversation.type(f"{server.get_url()}\n")
|
353
|
+
self.conversation.newline()
|
354
|
+
|
355
|
+
access_token, refresh_token = server.get_tokens()
|
345
356
|
if access_token is None or refresh_token is None:
|
346
357
|
return False
|
347
358
|
|
gibson/core/Conversation.py
CHANGED
@@ -149,9 +149,6 @@ class Conversation:
|
|
149
149
|
self.newline()
|
150
150
|
self.type("First, let's get you logged in.\n")
|
151
151
|
self.pause()
|
152
|
-
self.newline()
|
153
|
-
self.type("We're opening your web browser to the login page.\n")
|
154
|
-
self.type("Please log in and then return to this window.\n")
|
155
152
|
return self
|
156
153
|
|
157
154
|
def message_project_setup(self):
|
gibson/services/auth/Server.py
CHANGED
@@ -53,8 +53,11 @@ class Server(HTTPServer):
|
|
53
53
|
|
54
54
|
return self.access_token, self.refresh_token
|
55
55
|
|
56
|
+
def get_url(self):
|
57
|
+
return f"{self.app_domain}/signup?cli={self.port}"
|
58
|
+
|
56
59
|
def _open_browser(self):
|
57
|
-
webbrowser.open(
|
60
|
+
webbrowser.open(self.get_url())
|
58
61
|
|
59
62
|
def _start(self):
|
60
63
|
thread = Thread(target=self.serve_forever)
|
@@ -33,7 +33,7 @@ gibson/command/auth/Logout.py,sha256=V01q4TdbiBqCnIrM6IA4T25fO6ws0UpXp42I3pwHZVM
|
|
33
33
|
gibson/command/rewrite/Api.py,sha256=sSvAqEJXdgQjYcu0uiM6ndHE3GnfkfVL6eqP2Otkbww,1002
|
34
34
|
gibson/command/rewrite/Base.py,sha256=YJ2a5Hl0f9NXHUBBPvlt-dUIqEPWQz5vH6-1EHmbFbA,640
|
35
35
|
gibson/command/rewrite/Models.py,sha256=eoUpZHpR0qwNgX60EWfcNz49GHmBw_FGfBuHH2ueZqY,799
|
36
|
-
gibson/command/rewrite/Rewrite.py,sha256=
|
36
|
+
gibson/command/rewrite/Rewrite.py,sha256=AK2CcE2sJ0naUmox17BxqN0Usq-oSzjJXfRrKKsGY_k,4682
|
37
37
|
gibson/command/rewrite/Schemas.py,sha256=zZ1gjmOJg77gh70t5y2WkzHWSAvEKx5-gqRN9OcsCXA,802
|
38
38
|
gibson/command/rewrite/Tests.py,sha256=HO1WM6pSToVKsuJn7nUA_I5qrfBN0cgKgBzjlm2Qxt8,799
|
39
39
|
gibson/command/tests/test_command_BaseCommand.py,sha256=hSbBfLFI3RTp_DdEHtm5oOLWoN6drI6ucFJypi7xxV8,364
|
@@ -59,8 +59,8 @@ gibson/conf/tests/test_conf_Platform.py,sha256=Zc53IsZmV-hT9VRrZEPNrsuehSdWnJXWK
|
|
59
59
|
gibson/core/Colors.py,sha256=UchFC88hnQwLg2GFAqC4rqsBySlNU_0-5tC9Iz048q8,1421
|
60
60
|
gibson/core/CommandRouter.py,sha256=7U9eUsEPTwKHZEdeCcMXB_qmDXx6X9wCY_OUPBRyt8M,8477
|
61
61
|
gibson/core/Completions.py,sha256=N-mfeImSzw-d3Lrpu1KVnt0geMuKkbTaHpYTMYcPcAQ,1152
|
62
|
-
gibson/core/Configuration.py,sha256=
|
63
|
-
gibson/core/Conversation.py,sha256=
|
62
|
+
gibson/core/Configuration.py,sha256=L5jDfY20N0MvfaCW2sc8_8282VlQ8rWGr-C3rK-Gtfk,16036
|
63
|
+
gibson/core/Conversation.py,sha256=x2nTD5YD72VpwCSJgrlpMhJqqibfIfbTob0dz0FCPMA,8646
|
64
64
|
gibson/core/Env.py,sha256=7HFKGah25KjLelyOjYS8ylR6yDScT6utyZe7HdB3aRE,431
|
65
65
|
gibson/core/Memory.py,sha256=xQvExaT151yC9nwKJuADsniMR-UQhw7zXyJd4LReL6g,3942
|
66
66
|
gibson/core/TimeKeeper.py,sha256=0mzs04wizjGEJbiQFWZyi4ja4XgeJaDqc0JzPCHp9po,250
|
@@ -79,7 +79,7 @@ gibson/display/tests/test_display_WorkspaceFooter.py,sha256=96syJutXZWbGOLiAS5Sk
|
|
79
79
|
gibson/display/tests/test_display_WorkspaceHeader.py,sha256=9FuNLOkCAyFSDaonZbLQhLJSizc7bI2HAz3z1ifJlYs,316
|
80
80
|
gibson/lang/Python.py,sha256=WNbCTFhDh9qXVbeySyfaP-6m-c0wllSCZw8A-r_Z0Oo,1764
|
81
81
|
gibson/lang/tests/test_lang_Python.py,sha256=YpdqYOGAssg-jP9GuzfoU4Y4L7Boj0vAUAJgjuZvedo,1862
|
82
|
-
gibson/services/auth/Server.py,sha256=
|
82
|
+
gibson/services/auth/Server.py,sha256=DKYpxsbAfQNBDlok0qy93ArugnEa-_CmvFIxAunapus,1922
|
83
83
|
gibson/services/code/context/schema/DataDictionary.py,sha256=zWLzxOzW8iMHxfXPEwnnbruEAtFa8j1UpghNd4AHzfA,369
|
84
84
|
gibson/services/code/context/schema/EntityKeys.py,sha256=rmCABPloMckvzfq9Gwx6DRP-RdmEwXarkpMR4boIQwQ,1569
|
85
85
|
gibson/services/code/context/schema/Manager.py,sha256=I_xcPrcE2nFJmBEXcIoJQ9lxKfWNQYHOEZNP0i9aYuY,906
|
@@ -104,8 +104,8 @@ gibson/structure/tests/test_Entity.py,sha256=Gl9f1NcEKdpWCx4W3takFFzp18mLhCYWKrd
|
|
104
104
|
gibson/tests/test_Env.py,sha256=DPWmP0-aEelducq9bAwv7rKoY2NjWXUeCrzfJDQkn2M,369
|
105
105
|
gibson/tests/test_Memory.py,sha256=YP7owToABAk_-s7fD5UG0HTc4lamDjdA39JUlLnk3Fg,2574
|
106
106
|
gibson/tests/test_utils.py,sha256=r_y-EG05YTCNtL8MWiAK1KmPsmeoMgypKsQC_lVgOtM,559
|
107
|
-
gibson_cli-0.3.
|
108
|
-
gibson_cli-0.3.
|
109
|
-
gibson_cli-0.3.
|
110
|
-
gibson_cli-0.3.
|
111
|
-
gibson_cli-0.3.
|
107
|
+
gibson_cli-0.3.4.dist-info/METADATA,sha256=oHcExWgP11ai06AQa8N_U1WMIddhDXaYy4InwMPOqvQ,11505
|
108
|
+
gibson_cli-0.3.4.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
109
|
+
gibson_cli-0.3.4.dist-info/entry_points.txt,sha256=j5VUvq3AzL21xPvVC24zMoXFt-I5lUWulr66nL3OAPM,50
|
110
|
+
gibson_cli-0.3.4.dist-info/top_level.txt,sha256=RFaUY7VXGiqkMwo1Rj7pM4kGvxkhhnfo-2LmPpuL_fs,11
|
111
|
+
gibson_cli-0.3.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|