Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
installsystems
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Seblu
installsystems
Commits
177ddc83
Commit
177ddc83
authored
13 years ago
by
Sebastien Luttringer
Browse files
Options
Downloads
Patches
Plain Diff
add command info
info command is used to get information about an image. It will replace list command
parent
833f5cff
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/is
+21
-0
21 additions, 0 deletions
bin/is
with
21 additions
and
0 deletions
bin/is
+
21
−
0
View file @
177ddc83
...
...
@@ -204,6 +204,15 @@ def c_help(parser, args):
else
:
args
.
subparser
.
choices
[
args
.
command
].
print_help
()
def
c_info
(
parser
,
args
):
'''
Get info about an image
'''
repoman
=
load_repositories
(
args
)
for
image
in
args
.
image
:
img
,
repo
=
select_image
(
image
,
repoman
,
args
.
best
)
img
.
show
(
verbose
=
args
.
verbose
,
changelog
=
args
.
changelog
)
def
c_init
(
parser
,
args
):
'''
Create an empty repository
...
...
@@ -445,6 +454,18 @@ p_help = subparsers.add_parser("help", help=c_help.__doc__.lower())
p_help
.
add_argument
(
"
command
"
,
nargs
=
"
?
"
,
help
=
"
command name
"
)
p_help
.
set_defaults
(
func
=
c_help
,
subparser
=
subparsers
)
# info command parser
p_info
=
subparsers
.
add_parser
(
"
info
"
,
help
=
c_info
.
__doc__
.
lower
())
p_info
.
add_argument
(
"
-v
"
,
action
=
"
store_true
"
,
dest
=
"
verbose
"
,
default
=
False
,
help
=
"
verbose output
"
)
p_info
.
add_argument
(
"
-c
"
,
"
--changelog
"
,
action
=
"
store_true
"
,
default
=
False
,
help
=
"
display image changelog
"
)
p_info
.
add_argument
(
"
-b
"
,
"
--best
"
,
action
=
"
store_true
"
,
default
=
False
,
help
=
"
in best mode, image is the most recent in all repositories
"
)
p_info
.
add_argument
(
"
image
"
,
nargs
=
"
+
"
,
help
=
"
image syntax is <path|[repository/]image[:version]>
"
)
p_info
.
set_defaults
(
func
=
c_info
)
# init command parser
p_init
=
subparsers
.
add_parser
(
"
init
"
,
help
=
c_init
.
__doc__
.
lower
())
p_init
.
add_argument
(
"
repository
"
,
nargs
=
"
+
"
,
...
...
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