Skip to content

Commit

Permalink
start-up log added - kamangir/bolt#746
Browse files Browse the repository at this point in the history
  • Loading branch information
kamangir committed Jul 1, 2024
1 parent 2ed7339 commit 4a6f543
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions hubblescope/.abcli/hubble.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ function hubble() {
plugin=hubble,task=$task \
"${@:2}"
}

abcli_log $(hubble version --show_icon 1)
2 changes: 1 addition & 1 deletion hubblescope/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

DESCRIPTION = f"{ICON} tools to access and process Hubble Space Telescope imagery and other datasets on AWS Open Data Registry."

VERSION = "4.23.1"
VERSION = "4.24.1"

MARQUEE = "https://github.com/kamangir/hubble/raw/main/assets/hst/u4ge0106r_c0m.gif"
11 changes: 9 additions & 2 deletions hubblescope/__main__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import argparse
from hubblescope.datasets import get
from hubblescope.ingest import ingest
from hubblescope import NAME, VERSION, DESCRIPTION
from hubblescope import NAME, VERSION, DESCRIPTION, ICON
from hubblescope.logger import logger
from blueness.argparse.generic import sys_exit

Expand All @@ -22,6 +22,12 @@
default=0,
help="0|1",
)
parser.add_argument(
"--show_icon",
type=int,
default=0,
help="0|1",
)
parser.add_argument(
"--object_name",
type=str,
Expand Down Expand Up @@ -57,7 +63,8 @@
)
elif args.task == "version":
print(
"{}-{}{}".format(
"{}{}-{}{}".format(
f"{ICON} " if args.show_icon else "",
NAME,
VERSION,
"\\n{}".format(DESCRIPTION) if args.show_description else "",
Expand Down

0 comments on commit 4a6f543

Please sign in to comment.