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
043fcb8a
Commit
043fcb8a
authored
Jan 23, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-tool: improve help
parent
b2fd7f3f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
epm-tool
bin/epm-tool
+10
-7
No files found.
bin/epm-tool
View file @
043fcb8a
#!/bin/sh
#!/bin/sh
#
#
# Copyright (C) 2022 Etersoft
# Copyright (C) 2022
, 2023
Etersoft
# Copyright (C) 2022 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2022
, 2023
Vitaly Lipatov <lav@etersoft.ru>
#
#
# This program is free software: you can redistribute it and/or modify
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# it under the terms of the GNU Affero General Public License as published by
...
@@ -29,21 +29,24 @@ epm_tool()
...
@@ -29,21 +29,24 @@ epm_tool()
fatal
"Use epm tool help to get help."
fatal
"Use epm tool help to get help."
;;
;;
"-h"
|
"--help"
|
"help"
)
"-h"
|
"--help"
|
"help"
)
echo
"Tools embedded in epm:"
get_help HELPCMD
$SHAREDIR
/epm-tool
cat
<<
EOF
cat
<<
EOF
Examples:
Examples:
epm tool eget
epm tool eget
-U http://ya.ru
epm tool estrlist
epm tool estrlist
union a b a c
EOF
EOF
;;
;;
"eget"
)
"eget"
)
# HELPCMD: downloading tool (simular to wget or curl)
showcmd eget
"
$@
"
showcmd eget
"
$@
"
eget
"
$@
"
eget
"
$@
"
;;
;;
"estrlist"
)
"estrlist"
)
# HELPCMD: string operations
showcmd estrlist
"
$@
"
showcmd estrlist
"
$@
"
estrlist
"
$@
"
estrlist
"
$@
"
;;
;;
"json"
)
"json"
)
# HELPCMD: json operations
showcmd json
"
$@
"
showcmd json
"
$@
"
$SHAREDIR
/tools_json
"
$@
"
$SHAREDIR
/tools_json
"
$@
"
;;
;;
...
...
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