Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Test Developertest
提交
5af1f177
T
Test Developertest
项目概览
OpenHarmony
/
Test Developertest
9 个月 前同步成功
通知
2
Star
23
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Test Developertest
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
5af1f177
编写于
3月 18, 2021
作者:
H
hwb0703
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix product form bug for show command
上级
85f3b217
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
7 addition
and
5 deletion
+7
-5
src/core/command/console.py
src/core/command/console.py
+5
-3
src/core/command/display.py
src/core/command/display.py
+2
-2
未找到文件。
src/core/command/console.py
浏览文件 @
5af1f177
...
...
@@ -226,7 +226,9 @@ class Console(object):
if
command
.
startswith
(
ToolCommandType
.
TOOLCMD_KEY_HELP
):
self
.
_process_command_help
(
para_list
)
elif
command
.
startswith
(
ToolCommandType
.
TOOLCMD_KEY_SHOW
):
self
.
_process_command_show
(
para_list
)
if
"productform"
in
self
.
wizard_dic
:
productform
=
self
.
wizard_dic
[
"productform"
]
self
.
_process_command_show
(
para_list
,
productform
)
elif
command
.
startswith
(
ToolCommandType
.
TOOLCMD_KEY_RUN
):
if
"productform"
in
self
.
wizard_dic
:
options
.
productform
=
self
.
wizard_dic
[
"productform"
]
...
...
@@ -251,9 +253,9 @@ class Console(object):
return
@
classmethod
def
_process_command_show
(
cls
,
para_list
):
def
_process_command_show
(
cls
,
para_list
,
productform
=
"phone"
):
if
para_list
[
0
]
==
ToolCommandType
.
TOOLCMD_KEY_SHOW
:
display_show_info
(
para_list
)
display_show_info
(
para_list
,
productform
)
else
:
LOG
.
error
(
"Wrong show command."
)
return
...
...
src/core/command/display.py
浏览文件 @
5af1f177
...
...
@@ -200,13 +200,13 @@ def display_help_info(para_list):
print
(
HLEP_COMMAND_INFOMATION
)
def
display_show_info
(
para_list
):
def
display_show_info
(
para_list
,
productform
):
if
len
(
para_list
)
==
0
or
para_list
[
0
]
!=
ToolCommandType
.
TOOLCMD_KEY_SHOW
:
print
(
"This command is not support."
)
return
if
len
(
para_list
)
>
1
:
display_show_command_info
(
para_list
[
1
])
display_show_command_info
(
para_list
[
1
]
,
productform
)
else
:
print
(
SUPPORT_COMMAND_SHOW
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录