Skip to content

Commit

Permalink
🔧 allow pipeline to get set as environment variable in shell
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhomer committed Oct 1, 2024
1 parent c43782b commit 46460d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ask/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ def debug_enabled(self) -> bool:

@property
def pipeline(self) -> str:
if "ASK_PIPELINE" in os.environ:
return os.environ["ASK_PIPELINE"]

pipeline = self.config.get("DEFAULT", "pipeline", fallback=None)

if pipeline:
Expand Down
1 change: 0 additions & 1 deletion ask/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def print(self, message):

def print_line(self, message):
self.print(message)
self.print("\n")

def print_processing(self):
self.print_line("...")
Expand Down

0 comments on commit 46460d1

Please sign in to comment.