mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 07:28:21 +08:00
Opt: Shorten the show of deploy config
- Fix: requirements.txt with <space>
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import copy
|
||||
|
||||
from deploy.utils import *
|
||||
|
||||
|
||||
@@ -22,10 +24,15 @@ class DeployConfig:
|
||||
for k, v in self.config.items():
|
||||
if k in ('Password', 'ApiToken'):
|
||||
continue
|
||||
if self.config_template[k] == v:
|
||||
continue
|
||||
print(f'{k}: {v}')
|
||||
|
||||
print(f'Rest of the configs are the same as {DEPLOY_TEMPLATE}')
|
||||
|
||||
def read(self):
|
||||
self.config = poor_yaml_read(DEPLOY_TEMPLATE)
|
||||
self.config_template = copy.deepcopy(self.config)
|
||||
self.config.update(poor_yaml_read(self.file))
|
||||
|
||||
def write(self):
|
||||
|
||||
Reference in New Issue
Block a user