Skip to content

Commit 22568bd

Browse files
committed
change nasa_ads to ads
1 parent c53f475 commit 22568bd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

astroquery_cli/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def setup_subcommands():
6969
# Import all subcommands
7070
from .modules import (
7171
simbad_cli, alma_cli, esasky_cli, gaia_cli, irsa_cli, jpl_cli, # Updated for jpl
72-
mast_cli, nasa_ads_cli, ned_cli, splatalogue_cli, vizier_cli
72+
mast_cli, ads_cli, ned_cli, splatalogue_cli, vizier_cli
7373
)
7474
# Restore astroquery log level after import
7575
logging.getLogger('astroquery').setLevel(logging.NOTSET)
@@ -80,7 +80,7 @@ def setup_subcommands():
8080
app.add_typer(irsa_cli.get_app(), name="irsa")
8181
app.add_typer(jpl_cli.get_app(), name="jpl") # Updated for jpl
8282
app.add_typer(mast_cli.get_app(), name="mast")
83-
app.add_typer(nasa_ads_cli.get_app(), name="nasa_ads")
83+
app.add_typer(ads_cli.get_app(), name="ads")
8484
app.add_typer(ned_cli.get_app(), name="ned")
8585
app.add_typer(simbad_cli.get_app(), name="simbad")
8686
app.add_typer(splatalogue_cli.get_app(), name="splatalogue")
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ def get_app():
2222
import builtins
2323
_ = builtins._
2424
app = typer.Typer(
25-
name="nasa_ads",
25+
name="ads",
2626
help=builtins._("Query the NASA Astrophysics Data System (ADS)."),
2727
invoke_without_command=True, # Add this to allow callback to run without subcommand
2828
no_args_is_help=False # Set to False for custom handling
2929
)
3030

3131
@app.callback()
32-
def nasa_ads_callback(
32+
def ads_callback(
3333
ctx: typer.Context,
3434
debug: bool = typer.Option(
3535
False,

astroquery_cli/options/field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def run_field():
1818
"jplhorizons": "jplhorizons",
1919
"jplsbdb": "jplsbdb",
2020
"mast": "mast",
21-
"nasa_ads": "nasa_ads",
21+
"ads": "ads",
2222
"ned": "ned",
2323
"simbad": "simbad",
2424
"splatalogue": "splatalogue",

0 commit comments

Comments
 (0)