Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cc-cli
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
cc-cli
Commits
82cd4dfa
Commit
82cd4dfa
authored
12 years ago
by
Anael Beutot
Committed by
Sébastien Luttringer
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Case coherency for error message
Signed-off-by:
Sébastien Luttringer
<
sebastien.luttringer@smartjog.com
>
parent
3e1d862d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cccli/commands/list.py
+2
-2
2 additions, 2 deletions
cccli/commands/list.py
cccli/commands/shell.py
+1
-1
1 addition, 1 deletion
cccli/commands/shell.py
with
3 additions
and
3 deletions
cccli/commands/list.py
+
2
−
2
View file @
82cd4dfa
...
...
@@ -156,7 +156,7 @@ class Command_list(TqlCommand):
# compute index width
indexw
=
max
(
int
(
math
.
log10
(
len
(
objs
[
"
objects
"
]))
+
1
),
len
(
"
index
"
))
if
size_id
+
indexw
>=
term_width
:
raise
cmdError
(
"
t
erm width is too small
"
)
raise
cmdError
(
"
T
erm width is too small
"
)
# build initial print order
order
=
[
t
for
t
in
objs
.
get
(
"
order
"
,
[])
if
t
in
tags
]
order
.
extend
(
sorted
(
set
(
tags
.
keys
())
-
set
(
order
)))
...
...
@@ -243,7 +243,7 @@ class Command_list(TqlCommand):
# check if the line width is not too small for this kind of listing,
# 10 seem to be a good minimum value:
if
term_width
<
10
:
raise
cmdError
(
"
t
erm width is too small
"
)
raise
cmdError
(
"
T
erm width is too small
"
)
# remove ignored tags
for
tag
in
self
.
options
.
ignore
:
if
tag
in
objs
[
"
order
"
]:
...
...
This diff is collapsed.
Click to expand it.
cccli/commands/shell.py
+
1
−
1
View file @
82cd4dfa
...
...
@@ -64,7 +64,7 @@ class Command_history(Command):
if
len
(
argv
)
!=
1
:
raise
cmdBadArgument
()
if
not
self
.
printer
.
history
:
raise
cmdError
(
"
n
ot available
"
)
raise
cmdError
(
"
N
ot available
"
)
for
l
in
self
.
printer
.
history
:
self
.
printer
.
out
(
l
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment