Skip to content

Commit

Permalink
FEATURE : Command line start.
Browse files Browse the repository at this point in the history
  • Loading branch information
crdoconnor committed Oct 29, 2023
1 parent ffcdf7e commit bcec231
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hitch/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def set_up(self):
self.path.working.rmtree()
self.path.working.mkdir()

for filename, contents in self.given["files"].items():
for filename, contents in self.given.get("files", {}).items():
filepath = self.path.working.joinpath(filename)
if not filepath.dirname().exists():
filepath.dirname().mkdir()
Expand Down
3 changes: 2 additions & 1 deletion hitch/story/quickstart.story
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ Quickstart:
steps:
- hitchskeleton:
cmd: website
output:
output: |
hello
4 changes: 3 additions & 1 deletion hitchskeleton/template.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import click


@click.command()
def website():
click.echo("hello")
click.echo("hello")

0 comments on commit bcec231

Please sign in to comment.