From 08cd4d33cf97d7e2c4dd8e67833c092b5f5efa0c Mon Sep 17 00:00:00 2001 From: chendelin1982 <27513732@qq.com> Date: Sun, 10 Oct 2021 23:54:15 +0800 Subject: [PATCH] model --- cli/__pycache__/controller.cpython-36.pyc | Bin 2172 -> 0 bytes cli/__pycache__/core.cpython-36.pyc | Bin 2075 -> 0 bytes cli/__pycache__/model.cpython-36.pyc | Bin 4602 -> 0 bytes cli/controller.py | 2 +- cli/model.py | 2 ++ cli/stackhub.py | 2 +- 6 files changed, 4 insertions(+), 2 deletions(-) delete mode 100644 cli/__pycache__/controller.cpython-36.pyc delete mode 100644 cli/__pycache__/core.cpython-36.pyc delete mode 100644 cli/__pycache__/model.cpython-36.pyc diff --git a/cli/__pycache__/controller.cpython-36.pyc b/cli/__pycache__/controller.cpython-36.pyc deleted file mode 100644 index 9d4876caa7bad6fef154d84caf8ce6aa4d25047d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2172 zcmZ`)&yU+g6!zGT<7AWFc3Zj<6k&cK-Hd~cj&x835%Z{Ey%nR!3H`FwXc?Em{umVXjB&R@=@$Af+! zulf~&JDinH+Kwz`cJ8LG9lg}U=$6jRPkrWaFYRzY4fr7KK5%%*d#@bcTe)e7S)cD< zwu4!Zv&T+6{2RMF$1yXV2NV6USsaWKp6fixo2Hx;xt`S3sGKNmob&y$){XimNuEyh zcz!Y}>e>1GSJy^G)y$@9RLiI52OBf_pXN&AuVg6b)Xn2UxsO-fh7b;Ahs+pvUpdIk z<32{8cMxr0I*;U}(glMjJv7pLgje|x+<_ZA{u9FZN|dKE#HtnNaWboPB9ce4=JP@) zO6SEh1eO%#Bq{1j%epLu95rVq%(6)}(OEX2jVVBfEq3kMqmAiG4mOBuaMjL~O8Mn*+oaNL05=k{6OUF@~tUqE7mOM)UrY@^js2ofvjCBx`q z1iY7Q>S=$)4sdl3kju0K&9ho?;Joy7cN$K6+=m786_cmBZ`XEcWyLuB31E6K9dgW> zQ}vhbba&apu8aDHiyORtQI&PhBSM#&=vtmFZsHO~MOjxOIy~f}(c|yFj273E7ve~Xv&sVt`VcvjbX{EI9lwaIu= zDARA5BAa8?miK^6Zmo<@kT*fQlj&F#n{Ixh?7FAU-~yvIA+|W8SYzL|$plY@#(rrB zhPp9cG2?GE%!HIR-H8atsa*)i3t8xX#P-=OHn`~9#&63f6#BMr?_#p;n@j!TY=s{# zwTtR{i;tDiksga^uJV&oM7X~iwUW^#@>~o-sB+%qWik@g^JAnz^^!vpA3&J?DG1?7 zO-vBGHpeuerMh`DuK?%$P(44yzZ5dE@Bj_cYhHuTRqG)K``BzGak%LeV?L46b~`{XwV16_lb^zVC9ioy z-MR~tBD!`wpM`92ky&fsX7+!qZ}*K^d!4tuFD;4gtcg<1OZ_b!M5O_#@2`t@$$T95 z@~ diff --git a/cli/__pycache__/core.cpython-36.pyc b/cli/__pycache__/core.cpython-36.pyc deleted file mode 100644 index 85be9f068c8eab6514f2b8a4f29823e979062c88..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2075 zcmb_dUvC>l5Z}E!-<>bElQ?M`5Cua4aRS*weLzAL3QD0!RB1^XwX8tLRVYQLVD7jC1Yp z^5YRN6RsOiMl~LLa#F))uLS!=_eiN)em)o+X6k6P-%qOI;`YCF{iLjmq3l=U@Z#3Y zjOPzxso+yIBpBB0HwXGd&~Sp_0Fo!o%=XaVmQuo{eNIiI%ubaC?RjH#r zk&m0bL#}!wk@pgM=@cc>7LbI@0+{d>-TniZb|lXa#4>0NySOtbN;Tkv$D&F{i5f^1 zC(j|`L6T>Kq!PSe19nlAm6?j74!X2}5jyV9gXqu9;NOQ(q8y-|hl3HU0-11zu=qKh zko)AvA5N(vLpro3^o*WbCmUvGPiRV0>sM>&oWUz5kV%Jtr7?7$2jVA6PHjrYUFA*e zp?^jxdEq`K-($Ui;fZJKwH$J>(l`X=!P|JU!e#mw?hxXF5`knkq)A$fUM-WZbi}YD9$e}UKFKO5=8>N z3Ln{9$mV&SuJB@kIa>mfE-;@umTwzf0^9iybGiv6d%&)%!_-L|P>)cDP)nY6ADBKE zuS{hRP!lnB(md_2t3nf5NW}_Vv=FZe6<_ln(5%Fkr{3rF^-9RsmH2|gD=17JeCWQd zyejzz*Z7~=wnJCk#<<=__71WhGJ`S(_D}yN>UY6_XBPoR-7C>z8E)dC|J3O2*ICXV z)#DDz{}JRqMq&YjK3<;QF$WokL>;T6c_#5(6KD%aegsUB3H&8slm6C)CZ-c;;xmHH zh;8>B*&)wn?Wb|(cqM<4XC)79?O=O}4R9iE0t+qiJ_zj`!21@!H7RSEZriF##Y^=m z95cg=&<-81UB1F@e2fa08zh^oM< z5I7)30~uZ~JY=S&5p)p%W38#zejN+R#SK(-E>*K37C;fh+>StP+FM`=3Vg+NPuBju Z>1g=^a2HKe*^d6z>WX_ diff --git a/cli/__pycache__/model.cpython-36.pyc b/cli/__pycache__/model.cpython-36.pyc deleted file mode 100644 index 28684080ec933f0065b24b48b154a6c243a94873..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4602 zcmb_fTXP&o74Dwf&aS1EEIYmtoQW|c3q}fr3KYmjiG>ZptW9KNdn&H2@k~pa)m&EH zy|%QqdXlSv2P*GW{s8}h;wSJ*)x7fLC*J)6-|1PcBx9GkWVia>)93W*?>l|^!`a!^ z-!>jae?7t2-`SC$jrt0b`U|pzB|KwcUGk8dwiQ~Yv_spJPUx7@4P8@up=ZiQ*g$Dz ze%=h5c`Iz?C&Cl?OgNLzhO>D)Z0B>~Ts|Mp=O@FHyq2*Lp1R2rJ8_<|#M!sP(`dPg zhn9!dTWB>BA1xoPGiWuF7FsQ|&Z2c9nL%p?t#b)qW1ZRO*aPc!nw9-=v0M4qqb!Ra zXQFae(^yx|tyJmCzdg`tSwvaouZiuUC}L5$cZUO-c6WDx#=QdLF)elQn;Pj`=n;$z z1EX*l#7gXEEOdmMIA3z3x&w1Gpp0KN*YdK|oA+ckx)R(JI?$UUcr26-lo<$yG7HvA z8Q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7O$tB6m;ow-qIED+ zD?1tQcKp{eqOuW4)#6r;i#WW6mND>)0~r%Cv?TS$NYfvAwG|{q{CX7`k|u5*?>t@+ z2*(kKM+=-L|6%s=QH5vG7uAvG68#aunjTD`*V&PD@p$3MZ zQy_^5*ULn)@zSM4`y`U6C&(zWM#2IAp6z^|fEvGL>o{;cJ$&uZVXuNP`yBMaGlU)_ zW2^3wZS=S=^?0z$kvU0Y%a!drY`YEUG>CMF!O3FH(J6usJaJiU1cQmeB*Aa$FlcwA zC-Fs5Tr*~m=J!Zj{yXUO8{7ojcs*h@4*yvJO|cXjp-{Y8rm;YmwfI5BQ+jSh*#P0X z&@}{!FfW?R8=??919>eY0VK^~qxX;4QX&v5b2`n%<*baOOkG=?esoMt`dCpSuMaib zd*Df*?X%-b;>D4wtb8gYDDrbmt$6$rDdaEFozqgaLjSXv;Q(RJM2!3u7JQYU;wuo8 zqzDw>B&a+TBu}CaN+V>&JzQ*5vyqC^w3i93g~aih1@SKGmuXSCID`#R*%98{wi@Qg zeB#frQsqz4LyX6B;8PU!o2hkpf*a^mL<(ll;OX=>U%>wi;@#0(uRQTC7FxyZ*SH>X zmh~0GgrlBaVE1C+`j<){m2^t diff --git a/cli/controller.py b/cli/controller.py index 5b9be3e4..1b58605d 100644 --- a/cli/controller.py +++ b/cli/controller.py @@ -45,7 +45,7 @@ class Create: def setEnv(self): '''set the usable port for application''' fileop=model.FileOp() - print(fileop.fileToJson('./drupal/.env')) + print(fileop.fileToJson(self.folder+'/.env')) pass def upRepo(self): diff --git a/cli/model.py b/cli/model.py index 74896325..a609b3be 100644 --- a/cli/model.py +++ b/cli/model.py @@ -55,6 +55,8 @@ class FileOp: def fileToJson(self, path: str, remark: Optional[str] = "#", separate: Optional[str] = "="): ''' convert file to Json ''' + print(path) + dict = {} with open(path) as fh: for line in fh: diff --git a/cli/stackhub.py b/cli/stackhub.py index a7a002dc..9cd10a1a 100644 --- a/cli/stackhub.py +++ b/cli/stackhub.py @@ -18,8 +18,8 @@ def create(app_name: str, project_name: Optional[str] = None): '''create one application''' create = controller.Create(app_name, project_name) create.downRepo() - create.upRepo() create.setEnv() + create.upRepo() create.printResult() @app.command()