gibson-cli 0.1.4__py3-none-any.whl → 0.1.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.
- bin/build.sh +2 -0
- bin/release.sh +1 -0
- gibson/command/Remove.py +1 -1
- gibson/core/Completions.py +11 -9
- {gibson_cli-0.1.4.dist-info → gibson_cli-0.1.6.dist-info}/METADATA +1 -1
- {gibson_cli-0.1.4.dist-info → gibson_cli-0.1.6.dist-info}/RECORD +9 -7
- {gibson_cli-0.1.4.dist-info → gibson_cli-0.1.6.dist-info}/top_level.txt +1 -0
- {gibson_cli-0.1.4.dist-info → gibson_cli-0.1.6.dist-info}/WHEEL +0 -0
- {gibson_cli-0.1.4.dist-info → gibson_cli-0.1.6.dist-info}/entry_points.txt +0 -0
bin/build.sh
ADDED
bin/release.sh
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
python3 -m twine upload --repository pypi dist/*
|
gibson/command/Remove.py
CHANGED
gibson/core/Completions.py
CHANGED
@@ -10,13 +10,11 @@ class Completions:
|
|
10
10
|
completions_location = f"$HOME/{self.gibson_config}/bash_completion"
|
11
11
|
installation = f"""\n[ -s "{completions_location}" ] && \\. "{completions_location}" # Load gibson auto completion\n"""
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
f.
|
16
|
-
|
17
|
-
|
18
|
-
if completions_location not in f.read():
|
19
|
-
f.write(installation)
|
13
|
+
for file in [f"{self.user_home}/.bashrc", f"{self.user_home}/.zshrc"]:
|
14
|
+
with open(file, "a+") as f:
|
15
|
+
f.seek(0)
|
16
|
+
if completions_location not in f.read():
|
17
|
+
f.write(installation)
|
20
18
|
|
21
19
|
return self
|
22
20
|
|
@@ -28,8 +26,12 @@ class Completions:
|
|
28
26
|
except FileNotFoundError:
|
29
27
|
return self
|
30
28
|
|
31
|
-
|
32
|
-
|
29
|
+
try:
|
30
|
+
os.mkdir(f"{self.user_home}/{self.gibson_config}")
|
31
|
+
except FileExistsError:
|
32
|
+
pass
|
33
|
+
|
34
|
+
with open(f"{self.user_home}/{self.gibson_config}/bash_completion", "w") as f:
|
33
35
|
f.write(contents)
|
34
36
|
|
35
37
|
return self
|
@@ -1,3 +1,5 @@
|
|
1
|
+
bin/build.sh,sha256=H3TAd349BECbcK3_t_jW9VzoLInMNrXtaLnXMEVanew,49
|
2
|
+
bin/release.sh,sha256=LxPqH5kxhLKvzHaPRLBlq_ApaK7FHEteH4SzeRenidk,49
|
1
3
|
gibson/api/BaseApi.py,sha256=SgEsVvEJ0t4U2jwJ-dp6YLVdBjh15pAOuT_wPQYn_v0,3233
|
2
4
|
gibson/api/Cli.py,sha256=WT2EvEwUJgfM2klxKBSMaDFWrO1maImo9LSeJM4-Eho,7146
|
3
5
|
gibson/bin/gibson.py,sha256=N1mAWaww9pw8s5u0et87FC5cFHVU6JzN4Kls3lDn-xw,354
|
@@ -20,7 +22,7 @@ gibson/command/Module.py,sha256=ZaiRiv_kVCRpWwwpDyDrvloocwH_wcL0XXyRldIpj00,1280
|
|
20
22
|
gibson/command/New.py,sha256=aiWzoZc3Zj7OC2GhnS4pzPHZ-sduDV1-TOng2giE7TM,1157
|
21
23
|
gibson/command/OpenApi.py,sha256=c9LM_sXJr5W7hInur02kNGbUK9i3ZBROzKgy_oThXWI,4341
|
22
24
|
gibson/command/Question.py,sha256=bfAkfhSdNAfFqWp18Nv4CzdtFTCDW5BQaLxEci6V8H0,3748
|
23
|
-
gibson/command/Remove.py,sha256=
|
25
|
+
gibson/command/Remove.py,sha256=RWgERQ2IlnH-NduMzBYZun2_pHUvC9UsJXehibPuMRI,2392
|
24
26
|
gibson/command/Rename.py,sha256=OYF0h3YDPycUrny-K8IOZjCEUEa9H4RtRbuIjTka-g4,2220
|
25
27
|
gibson/command/Rewrite.py,sha256=IfKdMOmHYy_oXBASXLwBftUIwDc-yZKi1P6A1u3iyZM,3132
|
26
28
|
gibson/command/Schema.py,sha256=w47Z2klLAUSGx8Ln6iCWCVuZtz6cHBMc_i4ru7DqhyI,1233
|
@@ -55,7 +57,7 @@ gibson/conf/dev/Schema.py,sha256=kOSlX1jEyVb82xd8TO8jEAimLcaefIFJr6d2JYvyTqg,74
|
|
55
57
|
gibson/conf/tests/test_conf_Dependencies.py,sha256=LITeeYiqXM5rKkyWFBqcnMvUR5pzDRuHVAngH372jWc,116
|
56
58
|
gibson/conf/tests/test_conf_Platform.py,sha256=Zc53IsZmV-hT9VRrZEPNrsuehSdWnJXWKGMmOhEqWHo,138
|
57
59
|
gibson/core/CommandRouter.py,sha256=jYKWpsCQGLjuCPkg7C8PPBnS07AddrUv3APTqB0s2C0,9558
|
58
|
-
gibson/core/Completions.py,sha256=
|
60
|
+
gibson/core/Completions.py,sha256=N-mfeImSzw-d3Lrpu1KVnt0geMuKkbTaHpYTMYcPcAQ,1152
|
59
61
|
gibson/core/Configuration.py,sha256=6EX8vh7qf15OB1hDfr2lYyKz6r-nB3KG0ltiax80_dU,14300
|
60
62
|
gibson/core/Conversation.py,sha256=rKSfJao5VGj1WyWHjfbKnYqWS9j0fPmDCF5uX9e04zs,8196
|
61
63
|
gibson/core/Env.py,sha256=7HFKGah25KjLelyOjYS8ylR6yDScT6utyZe7HdB3aRE,431
|
@@ -101,8 +103,8 @@ gibson/structure/tests/test_Entity.py,sha256=Gl9f1NcEKdpWCx4W3takFFzp18mLhCYWKrd
|
|
101
103
|
gibson/tests/test_Env.py,sha256=DPWmP0-aEelducq9bAwv7rKoY2NjWXUeCrzfJDQkn2M,369
|
102
104
|
gibson/tests/test_Memory.py,sha256=YP7owToABAk_-s7fD5UG0HTc4lamDjdA39JUlLnk3Fg,2574
|
103
105
|
gibson/tests/test_utils.py,sha256=r_y-EG05YTCNtL8MWiAK1KmPsmeoMgypKsQC_lVgOtM,559
|
104
|
-
gibson_cli-0.1.
|
105
|
-
gibson_cli-0.1.
|
106
|
-
gibson_cli-0.1.
|
107
|
-
gibson_cli-0.1.
|
108
|
-
gibson_cli-0.1.
|
106
|
+
gibson_cli-0.1.6.dist-info/METADATA,sha256=BNmzpINXYsNihyvepFKPWVxnCpigSLohhOu7I1vRIzI,11437
|
107
|
+
gibson_cli-0.1.6.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
108
|
+
gibson_cli-0.1.6.dist-info/entry_points.txt,sha256=j5VUvq3AzL21xPvVC24zMoXFt-I5lUWulr66nL3OAPM,50
|
109
|
+
gibson_cli-0.1.6.dist-info/top_level.txt,sha256=RFaUY7VXGiqkMwo1Rj7pM4kGvxkhhnfo-2LmPpuL_fs,11
|
110
|
+
gibson_cli-0.1.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|