Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and improve the tash demo script #89

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions tash/hack/demo.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
#!/bin/bash

DEBUG=1 go run .. git-clone-recipe.yaml
diff git-clone.yaml*
# With an empty recipe we just do canonical formatting of the input.
# Do this so we get a more meaningful diff below.
yq '{"base": .base}' git-clone-recipe.yaml >empty-recipe.yaml
DEBUG=1 go run .. empty-recipe.yaml >git-clone-a.yaml

# The real recipe
DEBUG=1 go run .. git-clone-recipe.yaml >git-clone-b.yaml

# Set DIFF=vimdiff if you like vimdiff
${DIFF:-diff} git-clone-a.yaml git-clone-b.yaml

# Use this to see the raw diff
#${DIFF:-diff} $(yq .base git-clone-recipe.yaml) git-clone-b.yaml