I would like the welcome banner that is displayed when you enter the REPL to be printed when I execute something like julia myCode.jl
in Window’s cmd. Is there a way to do so?
It appears that you can call Base.banner()
directly. So for example if you have a call to Base.banner()
in a filename called banner_start.jl
you can do something like this works:
julia -L banner_start.jl -e "println(:hello)"
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.6.1 (2021-04-23)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
hello
1 Like
It worked! Thanks!