Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
33111ad9
Commit
33111ad9
authored
Sep 01, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-play: add --short support
parent
e4a22f63
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
epm-play
bin/epm-play
+17
-1
No files found.
bin/epm-play
View file @
33111ad9
...
@@ -79,6 +79,7 @@ Options:
...
@@ -79,6 +79,7 @@ Options:
--remove APP - remove APP
--remove APP - remove APP
--list - list all installed apps
--list - list all installed apps
--list-all - list all available apps
--list-all - list all available apps
--short - print only names
EOF
EOF
exit
exit
fi
fi
...
@@ -95,8 +96,14 @@ fi
...
@@ -95,8 +96,14 @@ fi
if
[
"
$1
"
=
"--list"
]
||
[
"
$1
"
=
"--installed"
]
;
then
if
[
"
$1
"
=
"--list"
]
||
[
"
$1
"
=
"--installed"
]
;
then
shift
shift
echo
"Installed:"
local
i
local
i
if
[
-n
"
$short
"
]
;
then
for
i
in
$(
__list_installed_app
)
;
do
echo
"
$i
"
done
exit
fi
echo
"Installed:"
for
i
in
$(
__list_installed_app
)
;
do
for
i
in
$(
__list_installed_app
)
;
do
printf
" %-20s - %s
\n
"
"
$i
"
"
$(
$psdir
/
$i
.sh
--description
2>/dev/null
)
"
printf
" %-20s - %s
\n
"
"
$i
"
"
$(
$psdir
/
$i
.sh
--description
2>/dev/null
)
"
done
done
...
@@ -107,6 +114,15 @@ if [ "$1" = "--list-all" ] || [ -z "$*" ] ; then
...
@@ -107,6 +114,15 @@ if [ "$1" = "--list-all" ] || [ -z "$*" ] ; then
echo
"Run with a name of a play script to run:"
echo
"Run with a name of a play script to run:"
local
i
local
i
local
desc
local
desc
if
[
-n
"
$short
"
]
;
then
for
i
in
$psdir
/
*
.sh
;
do
# print all
#desc="$($i --description 2>/dev/null)"
#[ -z "$desc" ] && continue
basename
$i
.sh
done
exit
fi
for
i
in
$psdir
/
*
.sh
;
do
for
i
in
$psdir
/
*
.sh
;
do
desc
=
"
$(
$i
--description
2>/dev/null
)
"
desc
=
"
$(
$i
--description
2>/dev/null
)
"
[
-z
"
$desc
"
]
&&
continue
[
-z
"
$desc
"
]
&&
continue
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment