-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
This is a really cool project!
I was looking at it to see if it could help make @aws-amplify/cli testable.
The problem I see with the Amplify CLI is that it's interactive with prompts.
Before I found shellac, I was working on a tool that did the following:
- Read a markdown file (e.g.
README.md) and extracted theshellcode fences. - Create a
/tmpdirectory and execute these shell scripts sequentially. - Finally, a test assertion validates if the resulting output matched expectations.
The problem I ran into was trying to document the commands in a scriptable way:
$ amplify init
Enter a name for the project: nextamplified
# All AWS services you provision for your app are grouped into an "environment"
# A common naming convention is dev, staging, and production
Enter a name for the environment: devThen, following this block would be a comment:
<!-- shell:input
nextamplified[ENTER]
dev[ENTER]
-->Did you have any thoughts on how shellac could support testing interactive CLIs?
gaggle
Metadata
Metadata
Assignees
Labels
No labels