gibson-cli 0.5.3__py3-none-any.whl → 0.5.6__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/api/BaseApi.py +13 -4
- gibson/api/Cli.py +5 -12
- gibson/api/ProjectApi.py +13 -0
- gibson/command/Build.py +1 -1
- gibson/command/Conf.py +1 -1
- gibson/command/Count.py +1 -1
- gibson/command/Dev.py +1 -1
- gibson/command/Forget.py +1 -1
- gibson/command/Import.py +1 -1
- gibson/command/Merge.py +1 -1
- gibson/command/Model.py +1 -1
- gibson/command/Modify.py +1 -1
- gibson/command/OpenApi.py +1 -1
- gibson/command/Question.py +1 -1
- gibson/command/Remove.py +4 -2
- gibson/command/Schema.py +1 -1
- gibson/command/Show.py +7 -4
- gibson/command/Test.py +1 -1
- gibson/command/Tree.py +1 -1
- gibson/command/Version.py +1 -4
- gibson/command/code/Code.py +26 -0
- gibson/command/{Code.py → code/Entity.py} +4 -29
- gibson/command/{List.py → list/Entities.py} +2 -15
- gibson/command/list/List.py +27 -0
- gibson/command/list/Projects.py +31 -0
- gibson/command/new/Module.py +2 -2
- gibson/command/new/New.py +12 -6
- gibson/command/{Rename.py → rename/Entity.py} +9 -21
- gibson/command/rename/Rename.py +21 -0
- gibson/command/rewrite/Rewrite.py +1 -1
- gibson/core/CommandRouter.py +3 -8
- gibson/core/Configuration.py +25 -16
- gibson/core/Conversation.py +7 -0
- gibson/data/bash-completion.tmpl +3 -4
- gibson/display/WorkspaceHeader.py +3 -3
- {gibson_cli-0.5.3.dist-info → gibson_cli-0.5.6.dist-info}/METADATA +1 -1
- {gibson_cli-0.5.3.dist-info → gibson_cli-0.5.6.dist-info}/RECORD +40 -35
- {gibson_cli-0.5.3.dist-info → gibson_cli-0.5.6.dist-info}/WHEEL +1 -1
- {gibson_cli-0.5.3.dist-info → gibson_cli-0.5.6.dist-info}/entry_points.txt +0 -0
- {gibson_cli-0.5.3.dist-info → gibson_cli-0.5.6.dist-info}/top_level.txt +0 -0
gibson/api/BaseApi.py
CHANGED
@@ -2,6 +2,7 @@ import os
|
|
2
2
|
|
3
3
|
import requests
|
4
4
|
|
5
|
+
import gibson.core.Colors as Colors
|
5
6
|
from gibson.core.Configuration import Configuration
|
6
7
|
|
7
8
|
|
@@ -25,7 +26,15 @@ class BaseApi:
|
|
25
26
|
return r.json()
|
26
27
|
|
27
28
|
def headers(self):
|
28
|
-
|
29
|
+
headers = {
|
30
|
+
"X-Gibson-Client-ID": self.configuration.client_id(),
|
31
|
+
}
|
32
|
+
|
33
|
+
token = self.configuration.get_access_token()
|
34
|
+
if token is not None:
|
35
|
+
headers["Authorization"] = f"Bearer {token}"
|
36
|
+
|
37
|
+
return headers
|
29
38
|
|
30
39
|
def post(self, endpoint, json: dict):
|
31
40
|
r = requests.post(self.url(endpoint), headers=self.headers(), json=json)
|
@@ -75,9 +84,9 @@ class BaseApi:
|
|
75
84
|
|
76
85
|
def __raise_for_status(self, r):
|
77
86
|
if r.status_code == 401:
|
78
|
-
|
79
|
-
|
80
|
-
|
87
|
+
self.configuration.conversation.type(
|
88
|
+
f"\nYou need to log in to continue. Please run {Colors.command('gibson')} {Colors.subcommand('auth')} {Colors.argument('login')} and then try again.\n"
|
89
|
+
)
|
81
90
|
exit(1)
|
82
91
|
|
83
92
|
try:
|
gibson/api/Cli.py
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
+
from gibson.api.BaseApi import BaseApi
|
1
2
|
from gibson.core.Configuration import Configuration
|
2
3
|
from gibson.core.Memory import Memory
|
3
4
|
from gibson.lang.Python import Python
|
4
5
|
|
5
|
-
from .BaseApi import BaseApi
|
6
|
-
|
7
6
|
|
8
7
|
class Cli(BaseApi):
|
9
8
|
PREFIX = "cli"
|
10
9
|
|
11
10
|
def __init__(self, configuration: Configuration):
|
12
11
|
self.configuration = configuration
|
13
|
-
self.configuration.
|
12
|
+
self.configuration.require_login()
|
13
|
+
self.configuration.require_project()
|
14
14
|
|
15
15
|
def code_api(self):
|
16
16
|
return self.post(
|
@@ -64,15 +64,8 @@ class Cli(BaseApi):
|
|
64
64
|
).json()
|
65
65
|
|
66
66
|
def headers(self):
|
67
|
-
headers =
|
68
|
-
|
69
|
-
"X-Gibson-API-Key": self.configuration.project.api.key,
|
70
|
-
}
|
71
|
-
|
72
|
-
token = self.configuration.get_access_token()
|
73
|
-
if token is not None:
|
74
|
-
headers["Authorization"] = f"Bearer {token}"
|
75
|
-
|
67
|
+
headers = super().headers()
|
68
|
+
headers["X-Gibson-API-Key"] = self.configuration.project.api.key
|
76
69
|
return headers
|
77
70
|
|
78
71
|
def import_(self):
|
gibson/api/ProjectApi.py
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
from gibson.api.BaseApi import BaseApi
|
2
|
+
from gibson.core.Configuration import Configuration
|
3
|
+
|
4
|
+
|
5
|
+
class ProjectApi(BaseApi):
|
6
|
+
PREFIX = "project"
|
7
|
+
|
8
|
+
def __init__(self, configuration: Configuration):
|
9
|
+
self.configuration = configuration
|
10
|
+
self.configuration.require_login()
|
11
|
+
|
12
|
+
def all_projects(self):
|
13
|
+
return self.get("all")["projects"]
|
gibson/command/Build.py
CHANGED
@@ -49,7 +49,7 @@ class Build(BaseCommand):
|
|
49
49
|
if len(sys.argv) != 3 or sys.argv[2] != "datastore":
|
50
50
|
self.usage()
|
51
51
|
|
52
|
-
self.configuration.
|
52
|
+
self.configuration.require_project()
|
53
53
|
|
54
54
|
if self.memory.entities is None or len(self.memory.entities) == 0:
|
55
55
|
self.no_entities()
|
gibson/command/Conf.py
CHANGED
@@ -39,7 +39,7 @@ class Conf(BaseCommand):
|
|
39
39
|
except KeyError:
|
40
40
|
self.usage()
|
41
41
|
|
42
|
-
self.configuration.
|
42
|
+
self.configuration.require_project()
|
43
43
|
self.configuration.display_project()
|
44
44
|
self.conversation.type(f"{key}\n")
|
45
45
|
self.conversation.type(f" [old value] {old_value}\n")
|
gibson/command/Count.py
CHANGED
gibson/command/Dev.py
CHANGED
@@ -30,7 +30,7 @@ class Dev(BaseCommand):
|
|
30
30
|
if len(sys.argv) != 3 or sys.argv[2] not in ["off", "on"]:
|
31
31
|
self.usage()
|
32
32
|
|
33
|
-
self.configuration.
|
33
|
+
self.configuration.require_project()
|
34
34
|
|
35
35
|
if sys.argv[2] == "off":
|
36
36
|
if self.configuration.project.dev.active is True:
|
gibson/command/Forget.py
CHANGED
@@ -9,7 +9,7 @@ class Forget(BaseCommand):
|
|
9
9
|
if len(sys.argv) != 3 or sys.argv[2] not in ["all", "last", "stored"]:
|
10
10
|
self.usage()
|
11
11
|
|
12
|
-
self.configuration.
|
12
|
+
self.configuration.require_project()
|
13
13
|
self.configuration.display_project()
|
14
14
|
|
15
15
|
if sys.argv[2] in ["all", "last"]:
|
gibson/command/Import.py
CHANGED
@@ -15,7 +15,7 @@ class Import(BaseCommand):
|
|
15
15
|
if len(sys.argv) != 3 and len(sys.argv) != 5:
|
16
16
|
self.usage()
|
17
17
|
|
18
|
-
self.configuration.
|
18
|
+
self.configuration.require_project()
|
19
19
|
write_code = False
|
20
20
|
if len(sys.argv) == 5:
|
21
21
|
if sys.argv[3] != ".." or sys.argv[4] != "dev":
|
gibson/command/Merge.py
CHANGED
@@ -3,7 +3,7 @@ from gibson.command.BaseCommand import BaseCommand
|
|
3
3
|
|
4
4
|
class Merge(BaseCommand):
|
5
5
|
def execute(self):
|
6
|
-
self.configuration.
|
6
|
+
self.configuration.require_project()
|
7
7
|
self.configuration.display_project()
|
8
8
|
|
9
9
|
if self.memory.last is None or "entities" not in self.memory.last:
|
gibson/command/Model.py
CHANGED
@@ -12,7 +12,7 @@ class Model(BaseCommand):
|
|
12
12
|
if len(sys.argv) != 3:
|
13
13
|
self.usage()
|
14
14
|
|
15
|
-
self.configuration.
|
15
|
+
self.configuration.require_project()
|
16
16
|
entity = self.memory.recall_stored_entity(sys.argv[2])
|
17
17
|
if entity is None:
|
18
18
|
self.conversation.not_sure_no_entity(
|
gibson/command/Modify.py
CHANGED
@@ -10,7 +10,7 @@ class Modify(BaseCommand):
|
|
10
10
|
if len(sys.argv) < 4:
|
11
11
|
self.usage()
|
12
12
|
|
13
|
-
self.configuration.
|
13
|
+
self.configuration.require_project()
|
14
14
|
entity = self.memory.recall_entity(sys.argv[2])
|
15
15
|
if entity is None:
|
16
16
|
self.conversation.not_sure_no_entity(
|
gibson/command/OpenApi.py
CHANGED
gibson/command/Question.py
CHANGED
gibson/command/Remove.py
CHANGED
@@ -11,7 +11,7 @@ class Remove(BaseCommand):
|
|
11
11
|
if len(sys.argv) != 3:
|
12
12
|
self.usage()
|
13
13
|
|
14
|
-
self.configuration.
|
14
|
+
self.configuration.require_project()
|
15
15
|
self.configuration.display_project()
|
16
16
|
|
17
17
|
found = False
|
@@ -31,7 +31,9 @@ class Remove(BaseCommand):
|
|
31
31
|
else:
|
32
32
|
self.memory.remember_last({"entities": entities})
|
33
33
|
|
34
|
-
self.conversation.type(
|
34
|
+
self.conversation.type(
|
35
|
+
f"[Removed] {sys.argv[2]} from {Colors.argument('last')} memory\n"
|
36
|
+
)
|
35
37
|
self.conversation.newline()
|
36
38
|
|
37
39
|
return self
|
gibson/command/Schema.py
CHANGED
@@ -12,7 +12,7 @@ class Schema(BaseCommand):
|
|
12
12
|
if len(sys.argv) != 3:
|
13
13
|
self.usage()
|
14
14
|
|
15
|
-
self.configuration.
|
15
|
+
self.configuration.require_project()
|
16
16
|
entity = self.memory.recall_stored_entity(sys.argv[2])
|
17
17
|
if entity is None:
|
18
18
|
self.conversation.not_sure_no_entity(
|
gibson/command/Show.py
CHANGED
@@ -7,13 +7,13 @@ from gibson.command.BaseCommand import BaseCommand
|
|
7
7
|
class Show(BaseCommand):
|
8
8
|
def execute(self):
|
9
9
|
if len(sys.argv) == 2:
|
10
|
-
self.configuration.
|
10
|
+
self.configuration.require_project()
|
11
11
|
entities = self.memory.recall_merged()
|
12
12
|
if entities is None:
|
13
13
|
self.conversation.cant_no_entities(self.configuration.project.name)
|
14
14
|
exit(1)
|
15
15
|
elif len(sys.argv) == 3:
|
16
|
-
self.configuration.
|
16
|
+
self.configuration.require_project()
|
17
17
|
entity = self.memory.recall_entity(sys.argv[2])
|
18
18
|
if entity is None:
|
19
19
|
self.conversation.not_sure_no_entity(
|
@@ -25,8 +25,11 @@ class Show(BaseCommand):
|
|
25
25
|
else:
|
26
26
|
self.usage()
|
27
27
|
|
28
|
-
for entity in entities:
|
29
|
-
|
28
|
+
for entity in sorted(entities, key=lambda x: x["name"]):
|
29
|
+
statement = entity["definition"].replace(
|
30
|
+
entity["name"], Colors.argument(entity["name"]), 1
|
31
|
+
)
|
32
|
+
print(f"\n{statement}")
|
30
33
|
|
31
34
|
def usage(self):
|
32
35
|
self.configuration.display_project()
|
gibson/command/Test.py
CHANGED
@@ -12,7 +12,7 @@ class Test(BaseCommand):
|
|
12
12
|
if len(sys.argv) != 3:
|
13
13
|
self.usage()
|
14
14
|
|
15
|
-
self.configuration.
|
15
|
+
self.configuration.require_project()
|
16
16
|
entity = self.memory.recall_stored_entity(sys.argv[2])
|
17
17
|
if entity is None:
|
18
18
|
self.conversation.not_sure_no_entity(
|
gibson/command/Tree.py
CHANGED
gibson/command/Version.py
CHANGED
@@ -25,8 +25,5 @@ class Version(BaseCommand):
|
|
25
25
|
)
|
26
26
|
else:
|
27
27
|
self.conversation.type(
|
28
|
-
f"Nice! You are using the latest version of {Colors.command(self.configuration.command)}: {Colors.colorize(VersionConf.num, Colors.Color.CYAN)}\n"
|
28
|
+
f"Nice! 🎉 You are using the latest version of {Colors.command(self.configuration.command)}: {Colors.colorize(VersionConf.num, Colors.Color.CYAN)}\n"
|
29
29
|
)
|
30
|
-
|
31
|
-
self.conversation.newline()
|
32
|
-
return True
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import sys
|
2
|
+
|
3
|
+
import gibson.core.Colors as Colors
|
4
|
+
from gibson.command.BaseCommand import BaseCommand
|
5
|
+
from gibson.command.code.Entity import CodeEntity
|
6
|
+
|
7
|
+
|
8
|
+
class Code(BaseCommand):
|
9
|
+
def execute(self):
|
10
|
+
if len(sys.argv) == 4 and sys.argv[2] == "entity":
|
11
|
+
CodeEntity(self.configuration).execute()
|
12
|
+
else:
|
13
|
+
self.usage()
|
14
|
+
|
15
|
+
def usage(self):
|
16
|
+
self.configuration.display_project()
|
17
|
+
self.conversation.type(
|
18
|
+
f"usage: {Colors.command(self.configuration.command)} {Colors.subcommand('code')} {Colors.argument('entity')} {Colors.input('[entity name]')} {Colors.hint('create a new entity')}\n"
|
19
|
+
)
|
20
|
+
self.conversation.newline()
|
21
|
+
self.conversation.type(
|
22
|
+
' To create a new entity named "user":\n'
|
23
|
+
f" {Colors.command(self.configuration.command)} {Colors.subcommand('code')} {Colors.argument('entity')} {Colors.input('user')}\n"
|
24
|
+
)
|
25
|
+
self.conversation.newline()
|
26
|
+
exit(1)
|
@@ -1,9 +1,7 @@
|
|
1
1
|
import os
|
2
|
-
import re
|
3
2
|
import sys
|
4
3
|
from string import Template
|
5
4
|
|
6
|
-
import gibson.core.Colors as Colors
|
7
5
|
from gibson.api.Cli import Cli
|
8
6
|
from gibson.command.BaseCommand import BaseCommand
|
9
7
|
from gibson.command.Merge import Merge
|
@@ -18,7 +16,7 @@ from gibson.services.code.context.schema.Manager import (
|
|
18
16
|
from gibson.structure.Entity import Entity
|
19
17
|
|
20
18
|
|
21
|
-
class
|
19
|
+
class CodeEntity(BaseCommand):
|
22
20
|
CODE_WRITER_ENTITY_MODIFIER_NOOP = ""
|
23
21
|
|
24
22
|
def __init__(self, configuration: Configuration):
|
@@ -82,23 +80,15 @@ class Code(BaseCommand):
|
|
82
80
|
return Template(f.read()).substitute({"entity_name": sys.argv[3]})
|
83
81
|
|
84
82
|
def execute(self):
|
85
|
-
if len(sys.argv) != 4 or sys.argv[2] not in ["entity"]:
|
86
|
-
self.usage()
|
87
|
-
|
88
83
|
cli = Cli(self.configuration)
|
89
84
|
|
90
|
-
self.configuration.
|
91
|
-
self.configuration.display_project()
|
85
|
+
self.configuration.require_project()
|
92
86
|
definition = self.configure_definition()
|
93
87
|
|
94
|
-
self.conversation.c64_boot_search()
|
95
|
-
|
96
88
|
self.__context = CodeContextSchemaManager().from_code_writer_schema_context(
|
97
89
|
cli.code_writer_schema_context()
|
98
90
|
)
|
99
91
|
|
100
|
-
self.conversation.c64_boot_loading()
|
101
|
-
|
102
92
|
data = cli.code_writer_entity_modifier(
|
103
93
|
self.__context.json,
|
104
94
|
sys.argv[3],
|
@@ -107,8 +97,6 @@ class Code(BaseCommand):
|
|
107
97
|
)
|
108
98
|
entity = Entity().import_from_struct(data)
|
109
99
|
|
110
|
-
self.conversation.c64_ready_run()
|
111
|
-
|
112
100
|
while True:
|
113
101
|
self.__render_workspace(entity, data["code"][0]["definition"])
|
114
102
|
|
@@ -161,10 +149,10 @@ class Code(BaseCommand):
|
|
161
149
|
entity = Entity().import_from_struct(data)
|
162
150
|
|
163
151
|
def get_default_ref_table_template_path(self):
|
164
|
-
return os.path.dirname(__file__) + "
|
152
|
+
return os.path.dirname(__file__) + "/../../data/default-ref-table.tmpl"
|
165
153
|
|
166
154
|
def get_default_table_template_path(self):
|
167
|
-
return os.path.dirname(__file__) + "
|
155
|
+
return os.path.dirname(__file__) + "/../../data/default-table.tmpl"
|
168
156
|
|
169
157
|
def __render_workspace(self, entity: Entity, model):
|
170
158
|
self.configuration.platform.cmd_clear()
|
@@ -184,16 +172,3 @@ class Code(BaseCommand):
|
|
184
172
|
|
185
173
|
print("")
|
186
174
|
print(WorkspaceFooter().render())
|
187
|
-
|
188
|
-
def usage(self):
|
189
|
-
self.configuration.display_project()
|
190
|
-
self.conversation.type(
|
191
|
-
f"usage: {Colors.command(self.configuration.command)} {Colors.subcommand('code')} {Colors.argument('entity')} {Colors.input('[entity name]')} {Colors.hint('create a new entity')}\n"
|
192
|
-
)
|
193
|
-
self.conversation.newline()
|
194
|
-
self.conversation.type(
|
195
|
-
' To create a new entity named "user":\n'
|
196
|
-
f" {Colors.command(self.configuration.command)} {Colors.subcommand('code')} {Colors.argument('entity')} {Colors.input('user')}\n"
|
197
|
-
)
|
198
|
-
self.conversation.newline()
|
199
|
-
exit(1)
|
@@ -1,16 +1,11 @@
|
|
1
1
|
import sys
|
2
2
|
|
3
|
-
import gibson.core.Colors as Colors
|
4
|
-
from gibson.api.Cli import Cli
|
5
3
|
from gibson.command.BaseCommand import BaseCommand
|
6
4
|
|
7
5
|
|
8
|
-
class
|
6
|
+
class Entities(BaseCommand):
|
9
7
|
def execute(self):
|
10
|
-
|
11
|
-
self.usage()
|
12
|
-
|
13
|
-
self.configuration.ensure_project()
|
8
|
+
self.configuration.require_project()
|
14
9
|
self.configuration.display_project()
|
15
10
|
|
16
11
|
entities = {"last": [], "stored": []}
|
@@ -54,11 +49,3 @@ class List(BaseCommand):
|
|
54
49
|
self.conversation.newline()
|
55
50
|
|
56
51
|
self.conversation.newline()
|
57
|
-
|
58
|
-
def usage(self):
|
59
|
-
self.configuration.display_project()
|
60
|
-
self.conversation.type(
|
61
|
-
f"usage: {Colors.command(self.configuration.command)} {Colors.subcommand('list')} {Colors.arguments(['entities'])} {Colors.hint('list all entities')}\n"
|
62
|
-
)
|
63
|
-
self.conversation.newline()
|
64
|
-
exit(1)
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import sys
|
2
|
+
|
3
|
+
import gibson.core.Colors as Colors
|
4
|
+
from gibson.command.BaseCommand import BaseCommand
|
5
|
+
from gibson.command.list.Entities import Entities
|
6
|
+
from gibson.command.list.Projects import Projects
|
7
|
+
|
8
|
+
|
9
|
+
class List(BaseCommand):
|
10
|
+
def execute(self):
|
11
|
+
if len(sys.argv) == 3 and sys.argv[2] == "entities":
|
12
|
+
Entities(self.configuration).execute()
|
13
|
+
elif len(sys.argv) == 3 and sys.argv[2] == "projects":
|
14
|
+
Projects(self.configuration).execute()
|
15
|
+
else:
|
16
|
+
self.usage()
|
17
|
+
|
18
|
+
def usage(self):
|
19
|
+
self.configuration.display_project()
|
20
|
+
self.conversation.type(
|
21
|
+
f"usage: {Colors.command(self.configuration.command)} {Colors.subcommand('list')} {Colors.arguments(['entities'])} {Colors.hint('list all entities')}\n"
|
22
|
+
)
|
23
|
+
self.conversation.type(
|
24
|
+
f" or: {Colors.command(self.configuration.command)} {Colors.subcommand('list')} {Colors.arguments(['projects'])} {Colors.hint('list all projects')}\n"
|
25
|
+
)
|
26
|
+
self.conversation.newline()
|
27
|
+
exit(1)
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import re
|
2
|
+
|
3
|
+
import gibson.core.Colors as Colors
|
4
|
+
from gibson.api.ProjectApi import ProjectApi
|
5
|
+
from gibson.command.BaseCommand import BaseCommand
|
6
|
+
|
7
|
+
|
8
|
+
class Projects(BaseCommand):
|
9
|
+
def execute(self):
|
10
|
+
self.configuration.require_login()
|
11
|
+
projects = ProjectApi(self.configuration).all_projects()
|
12
|
+
|
13
|
+
if len(projects) == 0:
|
14
|
+
self.conversation.type(
|
15
|
+
f"No projects found. Create one with {Colors.command('gibson')} {Colors.subcommand('new')} {Colors.argument('project')}\n"
|
16
|
+
)
|
17
|
+
exit(1)
|
18
|
+
|
19
|
+
self.conversation.type("Name".ljust(40))
|
20
|
+
self.conversation.type("ID")
|
21
|
+
self.conversation.newline()
|
22
|
+
self.conversation.type("----".ljust(40))
|
23
|
+
self.conversation.type("-" * 36)
|
24
|
+
self.conversation.newline()
|
25
|
+
|
26
|
+
for project in projects:
|
27
|
+
name = project["name"] if project["name"] is not None else "Untitled"
|
28
|
+
name = re.sub(r"^(.{36}).*$", "\g<1>...", name).ljust(40)
|
29
|
+
self.conversation.type(f"{Colors.command(name)}")
|
30
|
+
self.conversation.type(f"{project['uuid']}")
|
31
|
+
self.conversation.newline()
|
gibson/command/new/Module.py
CHANGED
@@ -3,9 +3,9 @@ from gibson.api.Cli import Cli
|
|
3
3
|
from gibson.command.BaseCommand import BaseCommand
|
4
4
|
|
5
5
|
|
6
|
-
class
|
6
|
+
class NewModule(BaseCommand):
|
7
7
|
def execute(self):
|
8
|
-
self.configuration.
|
8
|
+
self.configuration.require_project()
|
9
9
|
module_name = self.conversation.prompt_module()
|
10
10
|
|
11
11
|
self.conversation.newline()
|
gibson/command/new/New.py
CHANGED
@@ -2,25 +2,28 @@ import sys
|
|
2
2
|
|
3
3
|
import gibson.core.Colors as Colors
|
4
4
|
from gibson.command.BaseCommand import BaseCommand
|
5
|
-
from gibson.command.
|
6
|
-
from gibson.command.new.
|
5
|
+
from gibson.command.code.Entity import CodeEntity
|
6
|
+
from gibson.command.new.Module import NewModule
|
7
|
+
from gibson.command.new.Project import NewProject
|
7
8
|
|
8
9
|
|
9
10
|
class New(BaseCommand):
|
10
11
|
def execute(self):
|
11
|
-
if len(sys.argv)
|
12
|
+
if not len(sys.argv) >= 3:
|
12
13
|
self.usage()
|
13
14
|
elif sys.argv[2] == "project":
|
14
|
-
|
15
|
+
NewProject(self.configuration).execute()
|
15
16
|
elif sys.argv[2] == "module":
|
16
|
-
|
17
|
+
NewModule(self.configuration).execute()
|
18
|
+
elif sys.argv[2] == "entity":
|
19
|
+
CodeEntity(self.configuration).execute()
|
17
20
|
else:
|
18
21
|
self.usage()
|
19
22
|
|
20
23
|
def usage(self):
|
21
24
|
self.configuration.display_project()
|
22
25
|
self.conversation.type(
|
23
|
-
f"usage: {Colors.command(self.configuration.command)} {Colors.subcommand('new')} {Colors.arguments(['project', 'module'])} {Colors.hint('create something new')}\n"
|
26
|
+
f"usage: {Colors.command(self.configuration.command)} {Colors.subcommand('new')} {Colors.arguments(['project', 'module', 'entity'])} {Colors.hint('create something new')}\n"
|
24
27
|
)
|
25
28
|
self.conversation.type(
|
26
29
|
f" {Colors.command(self.configuration.command)} {Colors.subcommand('new')} {Colors.argument('project')} {Colors.hint('create a new project')}\n"
|
@@ -28,5 +31,8 @@ class New(BaseCommand):
|
|
28
31
|
self.conversation.type(
|
29
32
|
f" {Colors.command(self.configuration.command)} {Colors.subcommand('new')} {Colors.argument('module')} {Colors.hint('create a new module')}\n"
|
30
33
|
)
|
34
|
+
self.conversation.type(
|
35
|
+
f" {Colors.command(self.configuration.command)} {Colors.subcommand('new')} {Colors.argument('entity')} {Colors.hint('create a new entity')}\n"
|
36
|
+
)
|
31
37
|
self.conversation.newline()
|
32
38
|
exit(1)
|
@@ -1,29 +1,25 @@
|
|
1
1
|
import sys
|
2
2
|
|
3
|
-
import gibson.core.Colors as Colors
|
4
3
|
from gibson.api.Cli import Cli
|
5
4
|
from gibson.command.BaseCommand import BaseCommand
|
6
5
|
from gibson.command.rewrite.Rewrite import Rewrite
|
7
6
|
|
8
7
|
|
9
|
-
class
|
8
|
+
class Entity(BaseCommand):
|
10
9
|
def execute(self):
|
11
|
-
|
12
|
-
self.usage()
|
13
|
-
|
14
|
-
self.configuration.ensure_project()
|
10
|
+
self.configuration.require_project()
|
15
11
|
self.configuration.display_project()
|
16
12
|
|
17
|
-
if self.memory.recall_entity(sys.argv[
|
13
|
+
if self.memory.recall_entity(sys.argv[3]) is None:
|
18
14
|
self.conversation.type(
|
19
|
-
f'Nothing renamed, did not find entity named "{sys.argv[
|
15
|
+
f'Nothing renamed, did not find entity named "{sys.argv[3]}".\n'
|
20
16
|
)
|
21
17
|
self.conversation.newline()
|
22
18
|
return self
|
23
19
|
|
24
|
-
if self.memory.recall_entity(sys.argv[
|
20
|
+
if self.memory.recall_entity(sys.argv[4]) is not None:
|
25
21
|
self.conversation.type(
|
26
|
-
f'Cannot rename to "{sys.argv[
|
22
|
+
f'Cannot rename to "{sys.argv[4]}" because that entity already exists.\n'
|
27
23
|
)
|
28
24
|
self.conversation.newline()
|
29
25
|
return self
|
@@ -35,8 +31,8 @@ class Rename(BaseCommand):
|
|
35
31
|
response = cli.modeler_entity_rename(
|
36
32
|
self.configuration.project.modeler.version,
|
37
33
|
last["entities"],
|
38
|
-
sys.argv[2],
|
39
34
|
sys.argv[3],
|
35
|
+
sys.argv[4],
|
40
36
|
)
|
41
37
|
|
42
38
|
self.memory.remember_last({"entities": response["entities"]})
|
@@ -46,13 +42,13 @@ class Rename(BaseCommand):
|
|
46
42
|
response = cli.modeler_entity_rename(
|
47
43
|
self.configuration.project.modeler.version,
|
48
44
|
stored,
|
49
|
-
sys.argv[2],
|
50
45
|
sys.argv[3],
|
46
|
+
sys.argv[4],
|
51
47
|
)
|
52
48
|
|
53
49
|
self.memory.remember_entities(response["entities"])
|
54
50
|
|
55
|
-
self.conversation.type(f"[Renamed] {sys.argv[
|
51
|
+
self.conversation.type(f"[Renamed] {sys.argv[3]} -> {sys.argv[4]}\n")
|
56
52
|
self.conversation.newline()
|
57
53
|
|
58
54
|
Rewrite(self.configuration, header="Refactoring").write()
|
@@ -60,11 +56,3 @@ class Rename(BaseCommand):
|
|
60
56
|
self.conversation.newline()
|
61
57
|
|
62
58
|
return self
|
63
|
-
|
64
|
-
def usage(self):
|
65
|
-
self.configuration.display_project()
|
66
|
-
self.conversation.type(
|
67
|
-
f"usage: {Colors.command(self.configuration.command)} {Colors.subcommand('rename')} {Colors.argument('[current]')} {Colors.input('[new]')} {Colors.hint('rename an entity')}\n"
|
68
|
-
)
|
69
|
-
self.conversation.newline()
|
70
|
-
exit(1)
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import sys
|
2
|
+
|
3
|
+
import gibson.core.Colors as Colors
|
4
|
+
from gibson.command.BaseCommand import BaseCommand
|
5
|
+
from gibson.command.rename.Entity import Entity
|
6
|
+
|
7
|
+
|
8
|
+
class Rename(BaseCommand):
|
9
|
+
def execute(self):
|
10
|
+
if len(sys.argv) == 5 and sys.argv[2] == "entity":
|
11
|
+
Entity(self.configuration).execute()
|
12
|
+
else:
|
13
|
+
self.usage()
|
14
|
+
|
15
|
+
def usage(self):
|
16
|
+
self.configuration.display_project()
|
17
|
+
self.conversation.type(
|
18
|
+
f"usage: {Colors.command(self.configuration.command)} {Colors.subcommand('rename')} {Colors.argument('entity')} {Colors.input('[existing name]')} {Colors.input('[new name]')} {Colors.hint('rename an entity')}\n"
|
19
|
+
)
|
20
|
+
self.conversation.newline()
|
21
|
+
exit(1)
|
@@ -37,7 +37,7 @@ class Rewrite(BaseCommand):
|
|
37
37
|
self.usage()
|
38
38
|
|
39
39
|
def write(self, argument=None):
|
40
|
-
self.configuration.
|
40
|
+
self.configuration.require_project()
|
41
41
|
|
42
42
|
if len(self.memory.recall_merged()) == 0:
|
43
43
|
self.conversation.cant_no_entities(self.configuration.project.name)
|
gibson/core/CommandRouter.py
CHANGED
@@ -2,14 +2,14 @@ import sys
|
|
2
2
|
|
3
3
|
from gibson.command.auth.Auth import Auth
|
4
4
|
from gibson.command.Build import Build
|
5
|
-
from gibson.command.Code import Code
|
5
|
+
from gibson.command.code.Code import Code
|
6
6
|
from gibson.command.Conf import Conf
|
7
7
|
from gibson.command.Count import Count
|
8
8
|
from gibson.command.Dev import Dev
|
9
9
|
from gibson.command.Forget import Forget
|
10
10
|
from gibson.command.Help import Help
|
11
11
|
from gibson.command.Import import Import
|
12
|
-
from gibson.command.List import List
|
12
|
+
from gibson.command.list.List import List
|
13
13
|
from gibson.command.Merge import Merge
|
14
14
|
from gibson.command.Model import Model
|
15
15
|
from gibson.command.Modify import Modify
|
@@ -17,13 +17,8 @@ from gibson.command.new.New import New
|
|
17
17
|
from gibson.command.OpenApi import OpenApi
|
18
18
|
from gibson.command.Question import Question
|
19
19
|
from gibson.command.Remove import Remove
|
20
|
-
from gibson.command.Rename import Rename
|
21
|
-
from gibson.command.rewrite.Api import Api
|
22
|
-
from gibson.command.rewrite.Base import Base
|
23
|
-
from gibson.command.rewrite.Models import Models
|
20
|
+
from gibson.command.rename.Rename import Rename
|
24
21
|
from gibson.command.rewrite.Rewrite import Rewrite
|
25
|
-
from gibson.command.rewrite.Schemas import Schemas
|
26
|
-
from gibson.command.rewrite.Tests import Tests
|
27
22
|
from gibson.command.Schema import Schema
|
28
23
|
from gibson.command.Show import Show
|
29
24
|
from gibson.command.Test import Test
|
gibson/core/Configuration.py
CHANGED
@@ -248,7 +248,7 @@ class Configuration:
|
|
248
248
|
return self
|
249
249
|
|
250
250
|
def create_project_memory(self):
|
251
|
-
self.
|
251
|
+
self.require_project()
|
252
252
|
try:
|
253
253
|
os.makedirs(self.project.paths.memory)
|
254
254
|
except OSError as e:
|
@@ -259,17 +259,6 @@ class Configuration:
|
|
259
259
|
if self.project is not None:
|
260
260
|
self.conversation.display_project(self.project.name)
|
261
261
|
|
262
|
-
def ensure_project(self):
|
263
|
-
if self.project is None:
|
264
|
-
self.conversation.gibsonai_project_not_set(self)
|
265
|
-
exit(1)
|
266
|
-
|
267
|
-
if self.project.name not in self.settings:
|
268
|
-
self.conversation.unrecognized_project(self, self.project.name)
|
269
|
-
exit(1)
|
270
|
-
|
271
|
-
return self
|
272
|
-
|
273
262
|
def get_access_token(self):
|
274
263
|
try:
|
275
264
|
with open(f"{self.paths.auth}/{self.API_ENV}", "r") as f:
|
@@ -281,7 +270,7 @@ class Configuration:
|
|
281
270
|
return token["access_token"]
|
282
271
|
|
283
272
|
def get_my_settings(self):
|
284
|
-
self.
|
273
|
+
self.require_project()
|
285
274
|
return self.settings[self.project.name]
|
286
275
|
|
287
276
|
def get_refresh_token(self):
|
@@ -358,6 +347,24 @@ class Configuration:
|
|
358
347
|
|
359
348
|
return self
|
360
349
|
|
350
|
+
def require_login(self):
|
351
|
+
if self.get_access_token() is None:
|
352
|
+
self.conversation.message_login_required()
|
353
|
+
exit(1)
|
354
|
+
|
355
|
+
return self
|
356
|
+
|
357
|
+
def require_project(self):
|
358
|
+
if self.project is None:
|
359
|
+
self.conversation.gibsonai_project_not_set(self)
|
360
|
+
exit(1)
|
361
|
+
|
362
|
+
if self.project.name not in self.settings:
|
363
|
+
self.conversation.unrecognized_project(self, self.project.name)
|
364
|
+
exit(1)
|
365
|
+
|
366
|
+
return self
|
367
|
+
|
361
368
|
def set_auth_tokens(self, access_token, refresh_token):
|
362
369
|
try:
|
363
370
|
os.mkdir(self.paths.auth)
|
@@ -386,7 +393,7 @@ class Configuration:
|
|
386
393
|
|
387
394
|
def setup_project(self):
|
388
395
|
config = None
|
389
|
-
if len(self.settings.keys()) == 1:
|
396
|
+
if self.settings is not None and len(self.settings.keys()) == 1:
|
390
397
|
config = list(self.settings.values())[0]
|
391
398
|
self.project = Project()
|
392
399
|
self.project.name = list(self.settings.keys())[0]
|
@@ -439,15 +446,16 @@ class Configuration:
|
|
439
446
|
return self
|
440
447
|
|
441
448
|
def turn_dev_off(self):
|
442
|
-
self.
|
449
|
+
self.require_project()
|
443
450
|
self.settings[self.project.name]["dev"]["active"] = False
|
444
451
|
self.write_config()
|
452
|
+
self.setup_project()
|
445
453
|
return self
|
446
454
|
|
447
455
|
def turn_dev_on(
|
448
456
|
self, api_path, api_prefix, api_version, base_path, model_path, schema_path
|
449
457
|
):
|
450
|
-
self.
|
458
|
+
self.require_project()
|
451
459
|
self.settings[self.project.name]["dev"]["active"] = True
|
452
460
|
self.settings[self.project.name]["dev"]["api"]["path"] = api_path
|
453
461
|
self.settings[self.project.name]["dev"]["api"]["prefix"] = api_prefix
|
@@ -456,6 +464,7 @@ class Configuration:
|
|
456
464
|
self.settings[self.project.name]["dev"]["model"]["path"] = model_path
|
457
465
|
self.settings[self.project.name]["dev"]["schema"]["path"] = schema_path
|
458
466
|
self.write_config()
|
467
|
+
self.setup_project()
|
459
468
|
return self
|
460
469
|
|
461
470
|
def write_config(self):
|
gibson/core/Conversation.py
CHANGED
@@ -130,6 +130,13 @@ class Conversation:
|
|
130
130
|
self.type("Login failed, please try again.\n")
|
131
131
|
return self
|
132
132
|
|
133
|
+
def message_login_required(self):
|
134
|
+
self.type("You need to login before performing this action.\n")
|
135
|
+
self.type(
|
136
|
+
f"Run {Colors.command('gibson')} {Colors.subcommand('auth')} {Colors.argument('login')} and try again.\n"
|
137
|
+
)
|
138
|
+
return self
|
139
|
+
|
133
140
|
def message_login_success(self):
|
134
141
|
self.newline()
|
135
142
|
self.type("Nice! You're now logged in.\n")
|
gibson/data/bash-completion.tmpl
CHANGED
@@ -66,12 +66,11 @@ __gibson_completions() {
|
|
66
66
|
dev) __gibson_generate_completion "on off" ;;
|
67
67
|
forget) __gibson_generate_completion "stored last all" ;;
|
68
68
|
import) __gibson_generate_completion "api datastore" ;;
|
69
|
-
list) __gibson_generate_completion "entities" ;;
|
70
|
-
new) __gibson_generate_completion "project module" ;;
|
69
|
+
list) __gibson_generate_completion "entities projects" ;;
|
70
|
+
new) __gibson_generate_completion "project module entity" ;;
|
71
|
+
rename) __gibson_generate_completion "entity" ;;
|
71
72
|
rewrite) __gibson_generate_completion "api base models schemas tests" ;;
|
72
|
-
# create) __gibson_generate_completion "project module entity" ;;
|
73
73
|
# project) __gibson_generate_completion "create delete list" ;;
|
74
|
-
# rename) __gibson_generate_completion "entity" ;;
|
75
74
|
esac
|
76
75
|
|
77
76
|
return 0
|
@@ -1,41 +1,46 @@
|
|
1
1
|
bin/build.sh,sha256=H3TAd349BECbcK3_t_jW9VzoLInMNrXtaLnXMEVanew,49
|
2
2
|
bin/release.sh,sha256=LxPqH5kxhLKvzHaPRLBlq_ApaK7FHEteH4SzeRenidk,49
|
3
|
-
gibson/api/BaseApi.py,sha256=
|
4
|
-
gibson/api/Cli.py,sha256=
|
3
|
+
gibson/api/BaseApi.py,sha256=tLY4IahK9Ppy5gfYvlayRb46852UFq0mHKMmv8aF6xc,3033
|
4
|
+
gibson/api/Cli.py,sha256=KvlMDvcMh7i6p3yGeikGmfi4HjUWb49RncJyF-J-9lM,7752
|
5
|
+
gibson/api/ProjectApi.py,sha256=T7TqtywJjrzFIfARenQUsrH-80x9Oo1pABbFAdlQkI0,356
|
5
6
|
gibson/bin/gibson.py,sha256=N1mAWaww9pw8s5u0et87FC5cFHVU6JzN4Kls3lDn-xw,354
|
6
7
|
gibson/command/BaseCommand.py,sha256=mmWUO0FxjMCbv3cHWnnasfAWnU_hTuGHUsRVJ4hUcqM,777
|
7
|
-
gibson/command/Build.py,sha256=
|
8
|
-
gibson/command/
|
9
|
-
gibson/command/
|
10
|
-
gibson/command/
|
11
|
-
gibson/command/
|
12
|
-
gibson/command/Forget.py,sha256=yMjyIOlwnqM6Hy_3k9152PKJCvxiwZM3E4WbIOUMSis,1060
|
8
|
+
gibson/command/Build.py,sha256=KWGaTBF-_uChOmXQsaZChq--nXc4xJPpLfOG8K89vME,2849
|
9
|
+
gibson/command/Conf.py,sha256=MbEPT-lRujRJMBjKRQlshA3T3pplQ-zzia8RY_muWU4,2472
|
10
|
+
gibson/command/Count.py,sha256=Jh9_ImJibpiTitbllSl0xF6KUrOhrY7Bz7-5sx9cBVs,1083
|
11
|
+
gibson/command/Dev.py,sha256=-kmRHpOApUXklaCs4bJVqCRft4ubcVjAL7S1-BGr-ps,4355
|
12
|
+
gibson/command/Forget.py,sha256=5fszuq6oIe0unMbXpFtDpouJ1eYZIvsi2mLsa8RwN5U,1061
|
13
13
|
gibson/command/Help.py,sha256=KoHukpEk_jLNxaNdM-n4R-dXj_VZub6x4xIXbTK1_wU,4794
|
14
|
-
gibson/command/Import.py,sha256=
|
15
|
-
gibson/command/
|
16
|
-
gibson/command/
|
17
|
-
gibson/command/
|
18
|
-
gibson/command/
|
19
|
-
gibson/command/
|
20
|
-
gibson/command/
|
21
|
-
gibson/command/
|
22
|
-
gibson/command/
|
23
|
-
gibson/command/
|
24
|
-
gibson/command/
|
25
|
-
gibson/command/
|
26
|
-
gibson/command/Tree.py,sha256=pqVbebySThqJ-29izerScwaIb4XE40K3cYNA8bUpNkE,3055
|
27
|
-
gibson/command/Version.py,sha256=ZMaLYYX8rR8aVdC85EgKaKV6dhyL9I8F0gqWmlIsZY0,1319
|
14
|
+
gibson/command/Import.py,sha256=fD-PNsRk5qaOWmdmgLdFJ97wCYJDNFXzmHw_e68Lcv0,4216
|
15
|
+
gibson/command/Merge.py,sha256=R5ybMC1tUR5_T8YyUfXutzFa_V9j1_flv0s7KTJRq0M,1061
|
16
|
+
gibson/command/Model.py,sha256=eRAAvklZjXgstGbM-P9QeG85YQ80TRVZyYTIzzUPzsk,1279
|
17
|
+
gibson/command/Modify.py,sha256=3_fEGvLfGpgoXQ77SFA9J2KQDe1GMaAUPWkl-yCwR1E,1267
|
18
|
+
gibson/command/OpenApi.py,sha256=G1LGfco0PgMIBw4C_ksja2_0nKKnZzUoiNl2iY64QKw,4314
|
19
|
+
gibson/command/Question.py,sha256=8mWumOFKBeS_Lw8_4vF6eDIEx3kdbIwz11mLtY6e9zo,3998
|
20
|
+
gibson/command/Remove.py,sha256=fRPJCTCQFZVfl6Ri319E1ZudADkbWBZUOPiBue1Vrao,2512
|
21
|
+
gibson/command/Schema.py,sha256=zg10N6uHL37CHQRx8fH00kKS6loSS9kpFe_yv1K6-j8,1289
|
22
|
+
gibson/command/Show.py,sha256=odBwJ-VXIjTnopnys586LSWm5HunfLgeNLxt-aFAPng,1589
|
23
|
+
gibson/command/Test.py,sha256=HBwroaudQ1BSEsRDbv8MOOUiwXFjJgCUNnSFUi6uX3s,1283
|
24
|
+
gibson/command/Tree.py,sha256=BeJ_13xrrRCK5FP2rQHWpDKrshVzte-_D1pNG1GXPIw,3056
|
25
|
+
gibson/command/Version.py,sha256=YLd2c9eiVT6Xzj-ulRuL9QSiu21Fid2Jp_B7nD6k86o,1267
|
28
26
|
gibson/command/WarGames.py,sha256=V0KIpz-Z546qtQaOPdIVHQ6wp2n3r3M3tgKx-GRQzzU,1300
|
29
27
|
gibson/command/auth/Auth.py,sha256=rkWhAast68jL-_XVRU-3mIx2_ntlgmAJuwYx37gNVEI,1025
|
30
28
|
gibson/command/auth/Login.py,sha256=b43OfV76i6aGdOwj1NK64ZOdYlNyc08g3lZGQ_37KDw,437
|
31
29
|
gibson/command/auth/Logout.py,sha256=V01q4TdbiBqCnIrM6IA4T25fO6ws0UpXp42I3pwHZVM,248
|
32
|
-
gibson/command/
|
33
|
-
gibson/command/
|
30
|
+
gibson/command/code/Code.py,sha256=9nR3m1VXtbK8xUBwu3XPZj4V8tN1udbJMDImMXj9Vqs,985
|
31
|
+
gibson/command/code/Entity.py,sha256=Y9Nl-e5Idq4EamK5e0gHncPupEZR8GifL7kRzxSIDAU,6001
|
32
|
+
gibson/command/list/Entities.py,sha256=4qUxR5pBsUwnaW3SZQzCVbwyl_sCfM9lD9TWwipSyWw,1869
|
33
|
+
gibson/command/list/List.py,sha256=r6YQdaeMRgFKcz-VyEQTE_I2lRaaJ4kew3E_RKKaaTU,1047
|
34
|
+
gibson/command/list/Projects.py,sha256=yR4o0eZFYxORLiEe0Z5Vs9T-hKb1NxrGVUOCrYx9qDM,1140
|
35
|
+
gibson/command/new/Module.py,sha256=HK6CGAMvrzi5kVn7zNG6JDB5Y580djI12xHfXwFrj1w,1602
|
36
|
+
gibson/command/new/New.py,sha256=PbXj6i4Dop65DWDFSoQthm1Podubh8z652l7DICL4Gc,1626
|
34
37
|
gibson/command/new/Project.py,sha256=sExmNYDKWMIohAoBiF73nkVubgy6iMleaknXW8fWZJA,657
|
38
|
+
gibson/command/rename/Entity.py,sha256=SaAiN1bYsTOsqjyVzxghK8-N3sAKITThTzS5LEYgppY,1801
|
39
|
+
gibson/command/rename/Rename.py,sha256=T6iTjo6KRArbT8wBgrn-ehtNlY7tRlovlEZfBOUKYlk,731
|
35
40
|
gibson/command/rewrite/Api.py,sha256=sSvAqEJXdgQjYcu0uiM6ndHE3GnfkfVL6eqP2Otkbww,1002
|
36
41
|
gibson/command/rewrite/Base.py,sha256=YJ2a5Hl0f9NXHUBBPvlt-dUIqEPWQz5vH6-1EHmbFbA,640
|
37
42
|
gibson/command/rewrite/Models.py,sha256=eoUpZHpR0qwNgX60EWfcNz49GHmBw_FGfBuHH2ueZqY,799
|
38
|
-
gibson/command/rewrite/Rewrite.py,sha256=
|
43
|
+
gibson/command/rewrite/Rewrite.py,sha256=2v5xhb6JYv-I7jF7B5CpQbw7KWBFHnXLWK5mMaL-N8k,4684
|
39
44
|
gibson/command/rewrite/Schemas.py,sha256=zZ1gjmOJg77gh70t5y2WkzHWSAvEKx5-gqRN9OcsCXA,802
|
40
45
|
gibson/command/rewrite/Tests.py,sha256=HO1WM6pSToVKsuJn7nUA_I5qrfBN0cgKgBzjlm2Qxt8,799
|
41
46
|
gibson/command/tests/test_command_BaseCommand.py,sha256=hSbBfLFI3RTp_DdEHtm5oOLWoN6drI6ucFJypi7xxV8,364
|
@@ -59,16 +64,16 @@ gibson/conf/dev/Schema.py,sha256=kOSlX1jEyVb82xd8TO8jEAimLcaefIFJr6d2JYvyTqg,74
|
|
59
64
|
gibson/conf/tests/test_conf_Dependencies.py,sha256=LITeeYiqXM5rKkyWFBqcnMvUR5pzDRuHVAngH372jWc,116
|
60
65
|
gibson/conf/tests/test_conf_Platform.py,sha256=Zc53IsZmV-hT9VRrZEPNrsuehSdWnJXWKGMmOhEqWHo,138
|
61
66
|
gibson/core/Colors.py,sha256=5XJdm9n5Sa75Hv0BYVaGVhnzsgpwfbB2pGXcbGh5EjU,1539
|
62
|
-
gibson/core/CommandRouter.py,sha256=
|
67
|
+
gibson/core/CommandRouter.py,sha256=96Y38GvY14BtBNfb3LwBz-T0_qscyeo51q6xDxVjto0,3781
|
63
68
|
gibson/core/Completions.py,sha256=Bsh25vnf0pjpJA6MJNR_2MA2s58Ujj8XolR8fm8AQ_s,1197
|
64
|
-
gibson/core/Configuration.py,sha256=
|
65
|
-
gibson/core/Conversation.py,sha256=
|
69
|
+
gibson/core/Configuration.py,sha256=s6b09fC1qnQadB_Nbm3wcdMb1kjS95dP-32TSVv01c8,16050
|
70
|
+
gibson/core/Conversation.py,sha256=ExZvefcbBZH69z0aYvQ9aLItnG_1v6EtZ6mK5h5_QYg,9275
|
66
71
|
gibson/core/Env.py,sha256=08dZRHzzR0ahrbM4S0bXC7V1xhYQkT8Zefs00qUHf0U,498
|
67
72
|
gibson/core/Memory.py,sha256=Yw6xmqtAsFwd5Q4VgmGDt4U2dUGLyFXZ_nO8c74Oo8E,4005
|
68
73
|
gibson/core/PythonPath.py,sha256=p1q7n_5KnPvA8XbxJyvqC2vrIdEdTiMr6vRU9yj77Cs,1567
|
69
74
|
gibson/core/TimeKeeper.py,sha256=0mzs04wizjGEJbiQFWZyi4ja4XgeJaDqc0JzPCHp9po,250
|
70
75
|
gibson/core/utils.py,sha256=KTnPvA3sUYnLFTZG7Tke5YEdls8Da0rNbeaOm8hapiU,408
|
71
|
-
gibson/data/bash-completion.tmpl,sha256=
|
76
|
+
gibson/data/bash-completion.tmpl,sha256=X1E6EUsFDWSiLI0jmEQALpATZWKfWor65R5sOVx9Kvg,2645
|
72
77
|
gibson/data/default-ref-table.tmpl,sha256=cVqjTsmHDjmTGrbDEpNHaDG-GX1iWMzsQDXk5TASEXg,123
|
73
78
|
gibson/data/default-table.tmpl,sha256=4t7SmXBuZN4nV5SjuQp6PBdo0-c3hdRnl8TQ2wdaS3w,247
|
74
79
|
gibson/db/TableExceptions.py,sha256=F1NGHDhusg9E_3tLez1_abrbANtWyR0UtC_wE9CwNFE,137
|
@@ -76,7 +81,7 @@ gibson/db/tests/test_db_TableExceptions.py,sha256=PjZiIqfE-sr3zDR744qyMPJktI94fJ
|
|
76
81
|
gibson/dev/Dev.py,sha256=O-GiMATpVd9kYHsVfbHaC-Omh17HQ8FalFQNelfxh2s,2544
|
77
82
|
gibson/display/Header.py,sha256=moTxePVMNhtpeFtcI9EhnnLSK1gHIQiwYiWQtBPq_bY,298
|
78
83
|
gibson/display/WorkspaceFooter.py,sha256=1-PsPtLcC7xUZLwufSSaVo9caXuyZEwfR_iZatxwHF4,316
|
79
|
-
gibson/display/WorkspaceHeader.py,sha256=
|
84
|
+
gibson/display/WorkspaceHeader.py,sha256=qBKtwdtO3jnbQYGwqXZH5ph4jpR9a9KEVUA63VN_zAU,216
|
80
85
|
gibson/display/tests/test_display_Header.py,sha256=I1GmB9RRa80rcYtgm3YXtpugdp5obca94zBVjmREYCY,324
|
81
86
|
gibson/display/tests/test_display_WorkspaceFooter.py,sha256=96syJutXZWbGOLiAS5SkRZjwEAgj0E0t-uTT85BJe_w,359
|
82
87
|
gibson/display/tests/test_display_WorkspaceHeader.py,sha256=9FuNLOkCAyFSDaonZbLQhLJSizc7bI2HAz3z1ifJlYs,316
|
@@ -108,8 +113,8 @@ gibson/structure/tests/test_Entity.py,sha256=Gl9f1NcEKdpWCx4W3takFFzp18mLhCYWKrd
|
|
108
113
|
gibson/tests/test_Env.py,sha256=DPWmP0-aEelducq9bAwv7rKoY2NjWXUeCrzfJDQkn2M,369
|
109
114
|
gibson/tests/test_Memory.py,sha256=YP7owToABAk_-s7fD5UG0HTc4lamDjdA39JUlLnk3Fg,2574
|
110
115
|
gibson/tests/test_utils.py,sha256=r_y-EG05YTCNtL8MWiAK1KmPsmeoMgypKsQC_lVgOtM,559
|
111
|
-
gibson_cli-0.5.
|
112
|
-
gibson_cli-0.5.
|
113
|
-
gibson_cli-0.5.
|
114
|
-
gibson_cli-0.5.
|
115
|
-
gibson_cli-0.5.
|
116
|
+
gibson_cli-0.5.6.dist-info/METADATA,sha256=W2mJzIX32p-W8PnTedY6BpxLPY2CQoCENjM4dxTJu0c,11605
|
117
|
+
gibson_cli-0.5.6.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
118
|
+
gibson_cli-0.5.6.dist-info/entry_points.txt,sha256=j5VUvq3AzL21xPvVC24zMoXFt-I5lUWulr66nL3OAPM,50
|
119
|
+
gibson_cli-0.5.6.dist-info/top_level.txt,sha256=RFaUY7VXGiqkMwo1Rj7pM4kGvxkhhnfo-2LmPpuL_fs,11
|
120
|
+
gibson_cli-0.5.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|