Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix collection 'unshare' and 'set_alias' methods description #29

Merged
merged 1 commit into from
Oct 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions arlas/cli/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def share(
print("{} is shared with {}".format(collection, ", ".join(shared)))


@collections.command(help="Share the collection with the organisation")
@collections.command(help="Unshare the collection with the organisation")
def unshare(
collection: str = typer.Argument(help="Collection's name"),
organisation: str = typer.Argument(help="Organisation's name")
Expand All @@ -92,7 +92,7 @@ def set_display_name(
print("{} display name is {}".format(collection, name))


@collections.command(help="Set the collection display name", name="set_alias")
@collections.command(help="Set the field display name", name="set_alias")
def set_field_display_name(
collection: str = typer.Argument(help="Collection's name"),
field_path: str = typer.Argument(help="The field path"),
Expand Down Expand Up @@ -137,10 +137,10 @@ def create(
public: bool = typer.Option(default=False, help="Whether the collection is public or not"),
owner: str = typer.Option(default=None, help="Organisation's owner"),
orgs: list[str] = typer.Option(default=[], help="List of organisations accessing the collection"),
id_path: str = typer.Option(default=None, help="Overide the JSON path to the id field."),
centroid_path: str = typer.Option(default=None, help="Overide the JSON path to the centroid field."),
geometry_path: str = typer.Option(default=None, help="Overide the JSON path to the geometry field."),
date_path: str = typer.Option(default=None, help="Overide the JSON path to the date field.")
id_path: str = typer.Option(default=None, help="Override the JSON path to the id field."),
centroid_path: str = typer.Option(default=None, help="Override the JSON path to the centroid field."),
geometry_path: str = typer.Option(default=None, help="Override the JSON path to the geometry field."),
date_path: str = typer.Option(default=None, help="Override the JSON path to the date field.")
):
config = variables["arlas"]
if not owner and (orgs or public):
Expand Down
Loading