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
5f488f36
Commit
5f488f36
authored
14 years ago
by
Seblu
Browse files
Options
Downloads
Patches
Plain Diff
minor syntax improvment
parent
809b3847
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
TQL
+2
-2
2 additions, 2 deletions
TQL
cccli/handler.py
+2
-0
2 additions, 0 deletions
cccli/handler.py
with
4 additions
and
2 deletions
TQL
+
2
−
2
View file @
5f488f36
...
...
@@ -30,7 +30,7 @@ seblu> list a-con #list disconnected account
- TQL is a list statement mixed by separators
- TQL build his object list from left to right (left parenthesis)
- Each statement update the builded list regarding his separators
- Selecting, sorting and
c
ho
os
ing separators are followed by tags
- Selecting, sorting and
s
ho
w
ing separators are followed by tags
- Limiting separators are followed by limiting conditions
- TQL always return id tag
- By default separators is &
...
...
@@ -47,7 +47,7 @@ seblu> list a-con #list disconnected account
& selection intersection
| selection union
^ selection limit
$ tag
c
ho
os
ing
$ tag
s
ho
w
ing
% tag sorting
== tags operators ==
...
...
This diff is collapsed.
Click to expand it.
cccli/handler.py
+
2
−
0
View file @
5f488f36
...
...
@@ -23,10 +23,12 @@ class CliHandler(RpcHandler):
@pure
def
quit
(
self
,
rpc
=
None
):
'''
Call back function on server disconnect
'''
Printer
().
fatal
(
"
Disconnected from server!
"
)
@pure
def
get_tags
(
self
,
complete
=
None
,
partial
=
None
):
'''
Return a dict of local tags
'''
# prepare work
taglist
=
[
x
[
8
:]
for
x
in
dir
(
self
)
if
x
.
startswith
(
"
get_tag_
"
)
]
ctag
=
set
(
taglist
)
if
complete
is
None
else
set
(
complete
)
...
...
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