Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
Changelog
=========

Next
----

- Renamed the ``create-vws-database`` CLI command to ``create-vws-cloud-database``.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Usage
$ export VWS_PASSWORD="[YOUR-PASSWORD]"
$ TIME="$(date +%s%N | cut -b1-13)"
$ vws-web-tools create-vws-license --license-name "my-licence-$TIME"
$ vws-web-tools create-vws-database --license-name "my-licence-$TIME" --database-name "my-database-$TIME"
$ vws-web-tools create-vws-cloud-database --license-name "my-licence-$TIME" --database-name "my-database-$TIME"
$ vws-web-tools show-database-details --database-name "my-database-$TIME"

Full documentation
Expand Down
6 changes: 3 additions & 3 deletions src/vws_web_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,13 +456,13 @@ def create_vws_license(
@click.option("--email-address", envvar="VWS_EMAIL_ADDRESS", required=True)
@click.option("--password", envvar="VWS_PASSWORD", required=True)
@beartype
def create_vws_database(
def create_vws_cloud_database(
Comment thread
cursor[bot] marked this conversation as resolved.
database_name: str,
license_name: str,
email_address: str,
password: str,
) -> None:
"""Create a database."""
"""Create a cloud database."""
driver = create_chrome_driver()
try:
log_in(driver=driver, email_address=email_address, password=password)
Expand Down Expand Up @@ -515,6 +515,6 @@ def show_database_details(
click.echo(message=yaml.dump(data=details), nl=False)


vws_web_tools_group.add_command(cmd=create_vws_database)
vws_web_tools_group.add_command(cmd=create_vws_cloud_database)
vws_web_tools_group.add_command(cmd=create_vws_license)
vws_web_tools_group.add_command(cmd=show_database_details)
2 changes: 1 addition & 1 deletion tests/test_create_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def test_create_databases_cli(
result = runner.invoke(
cli=vws_web_tools_group,
args=[
"create-vws-database",
"create-vws-cloud-database",
"--license-name",
license_name,
"--database-name",
Expand Down
6 changes: 3 additions & 3 deletions tests/test_help/test_vws_command_help____.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ Options:
--help Show this message and exit.

Commands:
create-vws-database Create a database.
create-vws-license Create a license.
show-database-details Show the details of a database.
create-vws-cloud-database Create a cloud database.
create-vws-license Create a license.
show-database-details Show the details of a database.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Usage: vws-web create-vws-database [OPTIONS]
Usage: vws-web create-vws-cloud-database [OPTIONS]

Create a database.
Create a cloud database.

Options:
--license-name TEXT [required]
Expand Down