Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Macao Legacy
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
Container 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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MACAO
Macao Legacy
Commits
9dcc6ef4
Commit
9dcc6ef4
authored
1 year ago
by
Eliott Sammier
Browse files
Options
Downloads
Patches
Plain Diff
CLI: add status command
parent
166cbeed
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mcli
+22
-3
22 additions, 3 deletions
mcli
with
22 additions
and
3 deletions
mcli
+
22
−
3
View file @
9dcc6ef4
#!/usr/bin/env bash
#!/usr/bin/env bash
# 'status' command is an exception, must be run before setting all the env vars
if
[[
"
$1
"
==
"status"
]]
;
then
echo
"VERSION=
$VERSION
"
echo
"MACAO_ROOT=
$MACAO_ROOT
"
echo
"SOURCES_DIR=
$SOURCES_DIR
"
echo
"SCRIPTS_DIR=
$SCRIPTS_DIR
"
echo
"RESULTS_DIR=
$RESULTS_DIR
"
echo
"INDEXES_DIR=
$INDEXES_DIR
"
echo
""
echo
"Python virtual env:
${
VIRTUAL_ENV
:-
"not set"
}
"
echo
-n
"mcli: "
if
which mcli
>
/dev/null
;
then
echo
"available"
;
else
echo
"not in PATH"
;
fi
echo
""
git status
exit
fi
export
VERSION
=
"
${
VERSION
:-
macao_12
}
"
# macao_12 by default
export
VERSION
=
"
${
VERSION
:-
macao_12
}
"
# macao_12 by default
export
MACAO_ROOT
=
"
${
MACAO_ROOT
:-
$(
dirname
"
$(
realpath
"
$0
"
)
"
)
}
"
export
MACAO_ROOT
=
"
${
MACAO_ROOT
:-
$(
dirname
"
$(
realpath
"
$0
"
)
"
)
}
"
export
SOURCES_DIR
=
"
$MACAO_ROOT
/Basilisk/MACAO/
$VERSION
"
export
SOURCES_DIR
=
"
$MACAO_ROOT
/Basilisk/MACAO/
$VERSION
"
...
@@ -14,6 +31,11 @@ Usage: $(basename "$0") <command> [args]
...
@@ -14,6 +31,11 @@ Usage: $(basename "$0") <command> [args]
COMMANDS
COMMANDS
status
Print useful info about the current environment.
shell [-p|--pyenv]
Open a shell with mcli's environment variables set, including PATH.
If -p or --pyenv is specified, also enter the Python virtual env.
list-streams <file>
list-streams <file>
List audio streams in <file>
List audio streams in <file>
count-streams [<file>]
count-streams [<file>]
...
@@ -29,9 +51,6 @@ extract-rdf
...
@@ -29,9 +51,6 @@ extract-rdf
Run the extractor to generate RDF from text sources
Run the extractor to generate RDF from text sources
extract-mp3
extract-mp3
Extract audio streams from all Flash SWF files
Extract audio streams from all Flash SWF files
shell [-p|--pyenv]
Open a shell with mcli's environment variables set, including PATH.
If -p or --pyenv is specified, also enter the Python virtual env.
help
help
Print this help and exit
Print this help and exit
EOF
EOF
...
...
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