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
44e6964f
Commit
44e6964f
authored
13 years ago
by
Sebastien Luttringer
Browse files
Options
Downloads
Patches
Plain Diff
change help string of command
parent
c60e96b6
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
+18
-18
18 additions, 18 deletions
bin/is
with
18 additions
and
18 deletions
bin/is
+
18
−
18
View file @
44e6964f
...
...
@@ -171,7 +171,7 @@ def show_images(repoman, pattern, all_version=True, search=None,
def
c_add
(
args
):
'''
Add
an image pack
age into a repository
Add
packaged im
age
s
into a repository
'''
repoman
=
load_repositories
(
args
)
repo
=
repoman
[
args
.
repository
]
...
...
@@ -181,7 +181,7 @@ def c_add(args):
def
c_build
(
args
):
'''
Build a
n image
source i
n
current directory
Build a source i
mage in the
current directory
'''
# build start time
t0
=
time
.
time
()
...
...
@@ -196,7 +196,7 @@ def c_build(args):
def
c_cat
(
args
):
'''
Display
image
'
s fil
e
Display
files inside a packaged imag
e
'''
# looks if arguments is a file or image name
repoman
=
load_repositories
(
args
)
...
...
@@ -207,7 +207,7 @@ def c_cat(args):
def
c_changelog
(
args
):
'''
Display
image
'
s
changelog
Display changelog
of a packaged image
'''
# looks if arguments is a file or image name
repoman
=
load_repositories
(
args
)
...
...
@@ -275,7 +275,7 @@ def c_del(args):
def
c_diff
(
args
):
'''
Show diff between two repositories or images
Show
a
diff between two repositories or
packaged
images
'''
repoman
=
load_repositories
(
args
)
if
args
.
object
[
0
]
in
repoman
.
onlines
and
args
.
object
[
1
]
in
repoman
.
onlines
:
...
...
@@ -289,7 +289,7 @@ def c_diff(args):
def
c_extract
(
args
):
'''
Extract a
n image pack
age inside a directory
Extract a
packaged im
age inside a directory
'''
repoman
=
load_repositories
(
args
)
img
,
repo
=
select_image
(
args
.
image
,
repoman
,
...
...
@@ -299,7 +299,7 @@ def c_extract(args):
def
c_get
(
args
):
'''
Download a remote image in
current directory
Get packaged images from repository to
current directory
'''
repoman
=
load_repositories
(
args
)
for
image
in
args
.
image
:
...
...
@@ -318,7 +318,7 @@ def c_help(args):
def
c_info
(
args
):
'''
Get
info about
an
image
Display
info about
packaged
image
s
'''
repoman
=
load_repositories
(
args
)
for
image
in
args
.
image
:
...
...
@@ -328,7 +328,7 @@ def c_info(args):
def
c_init
(
args
):
'''
Creat
e an empty repository
Initializ
e an empty repository
'''
repoman
=
load_repositories
(
args
)
for
reponame
in
args
.
repository
:
...
...
@@ -336,7 +336,7 @@ def c_init(args):
def
c_install
(
args
):
'''
Install a
n
image
Install a
packaged
image
'''
# remove old image args
args
.
install_parser
.
_remove_action
(
...
...
@@ -365,7 +365,7 @@ def c_install(args):
def
c_list
(
args
):
'''
List images in repositor
y or image content
List
packaged
images in repositor
ies
'''
repoman
=
load_repositories
(
args
)
if
args
.
repo_search
==
""
:
...
...
@@ -381,7 +381,7 @@ def c_list(args):
def
c_move
(
args
):
'''
Move
an
image from a repository to another one
Move
packaged
image from a repository to another one
'''
repoman
=
load_repositories
(
args
)
dstrepo
=
repoman
[
args
.
repository
]
...
...
@@ -412,13 +412,13 @@ def c_new(args):
def
c_prepare_chroot
(
args
):
'''
Prepare a
chroot
Helper to prepare a path to be
chroot
ed
'''
istools
.
prepare_chroot
(
args
.
path
,
mount
=
not
args
.
no_mount
)
def
c_repo
(
args
):
'''
Get information abou
t repositories
Lis
t repositories
'''
# in cleaning mode we doesn't needs to sync repositories
if
args
.
purge
:
...
...
@@ -434,20 +434,20 @@ def c_repo(args):
def
c_search
(
args
):
'''
Search in repositor
y
Search
for packaged images
in repositor
ies
'''
repoman
=
load_repositories
(
args
)
repoman
.
search
(
args
.
pattern
)
def
c_unprepare_chroot
(
args
):
'''
Remove
preparation of a
chroot
Helper to remove chroot
preparation of a
path
'''
istools
.
unprepare_chroot
(
args
.
path
,
mount
=
not
args
.
no_umount
)
def
c_version
(
args
):
'''
Print
installsystems version
Display
installsystems version
'''
out
(
installsystems
.
version
)
...
...
@@ -500,7 +500,7 @@ def arg_parser_init():
p
.
add_argument
(
"
-p
"
,
"
--preserve
"
,
action
=
"
store_true
"
,
help
=
"
don
'
t remove image after adding to database
"
)
p
.
add_argument
(
"
repository
"
,
help
=
"
repository where images will be added
"
)
p
.
add_argument
(
"
path
"
,
nargs
=
"
+
"
,
help
=
"
image path
"
)
p
.
add_argument
(
"
path
"
,
nargs
=
"
+
"
,
help
=
"
local packaged
image path
"
)
p
.
set_defaults
(
func
=
c_add
)
# build command parser
p
=
subparser
.
add_parser
(
"
build
"
,
help
=
c_build
.
__doc__
.
lower
())
...
...
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