Skip to content

Commit

Permalink
opp_env.py: "shell" to print "Type omnetppto start the IDE."
Browse files Browse the repository at this point in the history
Issue: this message is also printed for omnetpp-3.x versions which do not
have an IDE yet. Maybe projects should have a "hints" entry too?
  • Loading branch information
avarga committed Nov 25, 2024
1 parent e5e11c3 commit a26a4ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opp_env/opp_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -1845,11 +1845,11 @@ def shell_subcommand_main(projects, workspace_directory=[], chdir=False, request

project_names = [p.name for p in effective_project_descriptions]
function_list = "; ".join([f"`build_{p}`, `clean_{p}`, `test_{p}`, `smoke_test_{p}`, `check_{p}`" for p in ["all"] + project_names])
hint_command = f"echo -e '{SHELL_GREEN}HINT{SHELL_NOCOLOR} To build, clean, test or check a project or all projects, use the following commands: {function_list}. (Use `declare -f <command>` to check what they do.)'"

commands = [
"build_all" if build or (install and not install_without_build) else None,
hint_command
f"echo -e '{SHELL_GREEN}HINT{SHELL_NOCOLOR} To build, clean, test or check a project or all projects, use the following commands: {function_list}. (Use `declare -f <command>` to check what they do.)'",
f"echo -e '{SHELL_GREEN}HINT{SHELL_NOCOLOR} Type {SHELL_CYAN}omnetpp{SHELL_NOCOLOR} to start the IDE.'"
]

kind = "nixless" if workspace.nixless else "isolated" if isolated else "non-isolated"
Expand Down

0 comments on commit a26a4ea

Please sign in to comment.