Skip to content

Commit

Permalink
🚜 Adds back run_command and removes ansible references from the README
Browse files Browse the repository at this point in the history
  • Loading branch information
jefftriplett committed Sep 11, 2024
1 parent fde6594 commit 9250739
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ There are my personal dotfiles. They are managed using:
$ just bootstrap
```

2. Let ansible do its thing

```shell
$ just install
```

# Justfile Usage

<!-- [[[cog
Expand Down
Empty file added scripts/__init__.py
Empty file.
20 changes: 20 additions & 0 deletions scripts/run_command.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# KUDOS to: https://github.com/hugovk/pypistats/blob/main/scripts/run_command.py

import subprocess


def run(command: str, with_console: bool = True) -> None:
output = subprocess.run(command.split(), capture_output=True, text=True)

print()

if with_console:
print("```shell")
print(f"$ {command}\n")

print(output.stdout.strip())

if with_console:
print("```")

print()

0 comments on commit 9250739

Please sign in to comment.