Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Poulpe
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
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
octobus
Poulpe
Commits
08e3ebc4
Commit
08e3ebc4
authored
2 years ago
by
Raphaël Gomès
Browse files
Options
Downloads
Patches
Plain Diff
bin: fix wrong comments/command help
parent
b22cd0ce
No related branches found
Branches containing commit
No related tags found
1 merge request
!21
Clean up the repository, add some usage-level documentation
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
bin/bin-env-util
+5
-5
5 additions, 5 deletions
bin/bin-env-util
bin/diff-result
+3
-3
3 additions, 3 deletions
bin/diff-result
bin/env-desc
+1
-1
1 addition, 1 deletion
bin/env-desc
bin/result-compare
+1
-1
1 addition, 1 deletion
bin/result-compare
with
10 additions
and
10 deletions
bin/bin-env-util
+
5
−
5
View file @
08e3ebc4
#!/usr/bin/env python3
#
# Small tool to manipula
o
te
# Small tool to manipulate
bin-envs
import
argparse
import
os
import
subprocess
...
...
@@ -42,7 +42,7 @@
def
setup_one
(
env_path
,
script
):
if
not
os
.
access
(
script
,
os
.
X_OK
):
err
(
f
'
no executable setup scrip at:
"
{
script
}
"'
)
err
(
f
'
no executable setup scrip
t
at:
"
{
script
}
"'
)
return
ERR_CODE_NO_SETUP_SCRIPT
ret
=
create_empty
(
env_path
,
method
=
"
script
"
)
if
ret
!=
0
:
...
...
@@ -118,7 +118,7 @@
### bin-env-util setup-one-sh PATH SCRIPT
cmd_parser
=
subparsers
.
add_parser
(
'
setup-one
'
,
help
=
'
create a new
empty
bin-env
'
help
=
'
create a new bin-env
with a setup script
'
)
cmd_parser
.
add_argument
(
'
PATH
'
,
...
...
@@ -166,7 +166,7 @@
### bin-env-util set PATH KEY VALUE
cmd_parser
=
subparsers
.
add_parser
(
'
set
'
,
help
=
'
S
how
a specific bin-env variable
'
help
=
'
S
et the value of
a specific bin-env variable
'
)
cmd_parser
.
add_argument
(
'
PATH
'
,
...
...
@@ -184,7 +184,7 @@
### bin-env-util del PATH KEY
cmd_parser
=
subparsers
.
add_parser
(
'
del
'
,
help
=
'
Show
a specific bin-env variable
'
help
=
'
Delete
a specific bin-env variable
'
)
cmd_parser
.
add_argument
(
'
PATH
'
,
...
...
This diff is collapsed.
Click to expand it.
bin/diff-result
+
3
−
3
View file @
08e3ebc4
#!/usr/bin/env python3
#
# Small tool to
manipulaote
# Small tool to
compare two results
import
argparse
import
collections
import
os
...
...
@@ -89,7 +89,7 @@
cmd_parser
.
add_argument
(
'
OLD_RESULT
'
,
help
=
"
the
path to the
binary environment directory
"
,
help
=
"
path to the
old result
"
,
)
cmd_parser
.
add_argument
(
'
NEW_RESULT
'
,
...
...
@@ -93,7 +93,7 @@
)
cmd_parser
.
add_argument
(
'
NEW_RESULT
'
,
help
=
"
the
path to the
data environment directory
"
,
help
=
"
path to the
new result
"
,
)
cmd_parser
.
add_argument
(
'
--full
'
,
action
=
'
store_const
'
,
const
=
True
)
...
...
This diff is collapsed.
Click to expand it.
bin/env-desc
+
1
−
1
View file @
08e3ebc4
#!/usr/bin/env python3
#
# Small
tool
to manipula
o
te
# Small
utility
to manipulate
environment description
import
os
import
sys
...
...
This diff is collapsed.
Click to expand it.
bin/result-compare
+
1
−
1
View file @
08e3ebc4
...
...
@@ -86,7 +86,7 @@
def
_parsers
():
cmd_parser
=
argparse
.
ArgumentParser
(
prog
=
'
result-
search
'
)
cmd_parser
=
argparse
.
ArgumentParser
(
prog
=
'
result-
compare
'
)
return
cmd_parser
...
...
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