-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,7 +52,7 @@ def list_commands(self, ctx: click.Context) -> Mapping[str, click.Command]: | |
}, | ||
{ | ||
"name": "Configuration commands", | ||
"commands": ["register", "cache", "set"], | ||
"commands": ["cache", "set"], | ||
}, | ||
{ | ||
"name": "Schema commands", | ||
|
@@ -72,6 +72,7 @@ def lamin_group_decorator(f): | |
@wraps(f) | ||
def wrapper(*args, **kwargs): | ||
return f(*args, **kwargs) | ||
|
||
return wrapper | ||
|
||
|
||
|
@@ -97,11 +98,16 @@ def main(): | |
@main.command() | ||
@click.argument("user", type=str) | ||
@click.option("--key", type=str, default=None, help="API key") | ||
@click.option("--password", type=str, default=None, help="legacy password") | ||
def login(user: str, key: Optional[str], password: Optional[str]): | ||
"""Login using a user email address or handle. | ||
"""Log into LaminHub. | ||
Upon logging in the first time, you need to pass your API key via | ||
Examples: `lamin login marge` or `lamin login [email protected]` | ||
``` | ||
lamin login [email protected] --key YOUR_API_KEY | ||
``` | ||
After this, you can either use `lamin login myhandle` or `lamin login [email protected]` | ||
""" | ||
from lamindb_setup._setup_user import login | ||
|
||
|
@@ -202,14 +208,6 @@ def save(filepath: str, key: str, description: str): | |
sys.exit(1) | ||
|
||
|
||
@main.command() | ||
def register(): | ||
"""Register an instance on the hub.""" | ||
from lamindb_setup._register_instance import register as register_ | ||
|
||
return register_() | ||
|
||
|
||
main.add_command(cache) | ||
|
||
|
||
|