This file contains hidden or 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
| diff --git a/nextstrain/cli/runner/managed_conda.py b/nextstrain/cli/runner/managed_conda.py | |
| index c970f32..14602fd 100644 | |
| --- a/nextstrain/cli/runner/managed_conda.py | |
| +++ b/nextstrain/cli/runner/managed_conda.py | |
| @@ -16,7 +16,7 @@ from ..types import RunnerSetupStatus, RunnerTestResults, RunnerUpdateStatus | |
| from ..util import capture_output, exec_or_return, user_app_data_dir, warn | |
| -USER_APP_DATA_DIR = user_app_data_dir() | |
| +USER_APP_DATA_DIR = user_app_data_dir(avoid_spaces = True) |
This file contains hidden or 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
| diff --git a/nextstrain/cli/util.py b/nextstrain/cli/util.py | |
| index 7fa5f11..a05f501 100644 | |
| --- a/nextstrain/cli/util.py | |
| +++ b/nextstrain/cli/util.py | |
| @@ -505,13 +505,19 @@ def glob_match(path: Union[str, Path], patterns: Union[str, Sequence[str]]) -> b | |
| return globmatch(path, patterns, flags = GLOBSTAR | BRACE | EXTGLOB | MATCHBASE | NEGATE) | |
| -def user_app_data_dir() -> Path: | |
| +def user_app_data_dir(avoid_spaces: bool = False) -> Path: |
This file contains hidden or 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
| From 74384936ab3b9354a57baf3291462c9fdd57d90a Mon Sep 17 00:00:00 2001 | |
| From: Thomas Sibley <tsibley@fredhutch.org> | |
| Date: Wed, 21 Sep 2022 15:45:11 -0700 | |
| Subject: [PATCH] wip! footing | |
| --- | |
| Dockerfile | 10 ++++++++-- | |
| devel/build | 21 +++++++++++++++++++-- | |
| devel/pull | 4 +++- | |
| devel/push | 15 ++++++++++----- |
This file contains hidden or 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
| ps1() { | |
| # Bold, bright white text (fg)… | |
| printf '\[\e[1;97m\]' | |
| local -a wordmark=( | |
| '#4377cd ' | |
| '#4377cd N' | |
| '#5097ba e' | |
| '#63ac9a x' | |
| '#7cb879 t' |
This file contains hidden or 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
| diff --git a/bin/standalone-installer-unix b/bin/standalone-installer-unix | |
| index e11445a..bfdfd3d 100755 | |
| --- a/bin/standalone-installer-unix | |
| +++ b/bin/standalone-installer-unix | |
| @@ -234,4 +234,6 @@ die() { | |
| exit 1 | |
| } | |
| -main "$@" | |
| +if [[ -z "$BASH_SOURCE" || "$BASH_SOURCE" == "$0" ]]; then |
This file contains hidden or 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
| From c65b3d35c4057f7cb89ad60319bedb4fc0ca811e Mon Sep 17 00:00:00 2001 | |
| From: Thomas Sibley <tsibley@fredhutch.org> | |
| Date: Tue, 13 Sep 2022 15:28:18 -0700 | |
| Subject: [PATCH] wip! managed-conda: Strict isolation mode | |
| --- | |
| nextstrain/cli/command/shell.py | 13 ++++--- | |
| nextstrain/cli/runner/managed_conda.py | 47 ++++++++++++++++++-------- | |
| 2 files changed, 42 insertions(+), 18 deletions(-) |
This file contains hidden or 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
| import itertools | |
| from rich.console import Console as RichConsole | |
| from rich.text import Text as RichText | |
| from typing import Union | |
| flatten = itertools.chain.from_iterable | |
| def heading(console: RichConsole, title: str) -> Union[str, RichText]: |
This file contains hidden or 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
| From bf2fb3d9db142a57031ebdd4134c0d819d5ca910 Mon Sep 17 00:00:00 2001 | |
| From: Thomas Sibley <tsibley@fredhutch.org> | |
| Date: Thu, 30 Sep 2021 17:00:43 -0700 | |
| Subject: [PATCH] wip! ES modules | |
| --- | |
| Procfile | 2 +- | |
| README.md | 10 +++++----- | |
| develop.sh | 2 +- | |
| docs/api.md | 2 +- |
This file contains hidden or 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
| diff --git a/src/app.js b/src/app.js | |
| index 75b14b7..4a03fb4 100644 | |
| --- a/src/app.js | |
| +++ b/src/app.js | |
| @@ -20,6 +20,7 @@ const PRODUCTION = process.env.NODE_ENV === "production"; | |
| const CANARY_ORIGIN = process.env.CANARY_ORIGIN; | |
| const authn = require("./authn"); | |
| +const authz = require("./authz"); | |
| const endpoints = require("./endpoints"); |
This file contains hidden or 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
| async function map(iterable, fn = x => x) { | |
| let array; | |
| if (iterable.map) { | |
| array = iterable; | |
| } else { | |
| array = []; | |
| for await (const x of iterable) { | |
| array.push(x); | |
| } |