Skip to content

Commit 11d584b

Browse files
authored
Merge pull request #194 from rstudio/mm-colors
Make colors work on dark and light backgrounds
2 parents b3480eb + e1f73d8 commit 11d584b

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

rsconnect/actions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ def cli_feedback(label):
5757
"""
5858
if label:
5959
pad = line_width - len(label)
60-
click.secho(label + "... " + " " * pad, nl=False, fg="bright_white")
60+
click.secho(label + "... " + " " * pad, nl=False)
6161
logger.set_in_feedback(True)
6262

6363
def passed():
6464
if label:
65-
click.secho("[OK]", fg="bright_green")
65+
click.secho("[OK]", fg="green")
6666

6767
def failed(err):
6868
if label:

rsconnect/main.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def info(file):
309309
entry_point, primary_document = describe_manifest(file_name)
310310
label = "Directory:" if isdir(file_name) else "Filename: "
311311
click.echo()
312-
click.echo("Server URL: %s" % click.style(deployment.get("server_url"), fg="white"))
312+
click.echo("Server URL: %s" % click.style(deployment.get("server_url")))
313313
click.echo(" App URL: %s" % deployment.get("app_url"))
314314
click.echo(" App ID: %s" % deployment.get("app_id"))
315315
click.echo(" App GUID: %s" % deployment.get("app_guid"))
@@ -441,11 +441,13 @@ def _deploy_bundle(
441441
)
442442

443443
with cli_feedback(""):
444-
click.secho("\nDeployment log:", fg="bright_white")
444+
click.secho("\nDeployment log:")
445445
app_url, _ = spool_deployment_log(connect_server, app, click.echo)
446-
click.secho("Deployment completed successfully.", fg="bright_white")
447-
click.secho(" Dashboard content URL: %s" % app_url, fg="bright_white")
448-
click.secho(" Direct content URL: %s" % app["app_url"], fg="bright_white")
446+
click.secho("Deployment completed successfully.")
447+
click.secho(" Dashboard content URL: ", nl=False)
448+
click.secho(app_url, fg="green")
449+
click.secho(" Direct content URL: ", nl=False)
450+
click.secho(app["app_url"], fg="green")
449451

450452
# save the config URL, replacing the old app URL we got during deployment
451453
# (which is the Open Solo URL).
@@ -551,7 +553,7 @@ def deploy_notebook(
551553
connect_server, app_store, file, new, app_id, title, static
552554
)
553555

554-
click.secho(' Deploying %s to server "%s"' % (file, connect_server.url), fg="white")
556+
click.secho(' Deploying %s to server "%s"' % (file, connect_server.url))
555557

556558
_warn_on_ignored_manifest(dirname(file))
557559

@@ -634,7 +636,7 @@ def deploy_manifest(name, server, api_key, insecure, cacert, new, app_id, title,
634636
package_manager,
635637
) = gather_basic_deployment_info_from_manifest(connect_server, app_store, file, new, app_id, title)
636638

637-
click.secho(' Deploying %s to server "%s"' % (file, connect_server.url), fg="white")
639+
click.secho(' Deploying %s to server "%s"' % (file, connect_server.url))
638640

639641
if package_manager == "conda":
640642
with cli_feedback("Ensuring Conda is supported"):
@@ -853,7 +855,7 @@ def _deploy_by_framework(
853855
connect_server, app_store, directory, entrypoint, new, app_id, title
854856
)
855857

856-
click.secho(' Deploying %s to server "%s"' % (directory, connect_server.url), fg="white")
858+
click.secho(' Deploying %s to server "%s"' % (directory, connect_server.url))
857859

858860
_warn_on_ignored_manifest(directory)
859861

0 commit comments

Comments
 (0)