Skip to content

Commit

Permalink
chore: disable core in cli (#8330)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryduev authored Sep 11, 2024
1 parent dc6862c commit 32246d7
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions wandb/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ def wrapper(*args, **kwargs):

def _get_cling_api(reset=None):
"""Get a reference to the internal api with cling settings."""
# TODO: move CLI to wandb-core backend
wandb.require("legacy-service")

global _api
if reset:
_api = None
Expand Down Expand Up @@ -226,6 +229,9 @@ def projects(entity, display=True):
@click.option("--verify", default=False, is_flag=True, help="Verify login credentials")
@display_error
def login(key, host, cloud, relogin, anonymously, verify, no_offline=False):
# TODO: move CLI to wandb-core backend
wandb.require("legacy-service")

# TODO: handle no_offline
anon_mode = "must" if anonymously else "never"

Expand Down Expand Up @@ -2949,14 +2955,6 @@ def enabled(service):
)


@cli.command("gc", hidden=True, context_settings={"ignore_unknown_options": True})
@click.argument("args", nargs=-1)
def gc(args):
click.echo(
"`wandb gc` command has been removed. Use `wandb sync --clean` to clean up synced runs."
)


@cli.command(context_settings=CONTEXT, help="Verify your local instance")
@click.option("--host", default=None, help="Test a specific instance of W&B")
def verify(host):
Expand Down

0 comments on commit 32246d7

Please sign in to comment.