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

Represent a template #3

Merged
merged 1 commit into from
Dec 20, 2022

Conversation

AidanDelaney
Copy link
Contributor

Create a template and the mechanism to ask questions form template prompts

Signed-off-by: Aidan Delaney adelaney21@bloomberg.net

Create a template and the mechanism to ask questions form template
prompts

Signed-off-by: Aidan Delaney <adelaney21@bloomberg.net>
@AidanDelaney AidanDelaney requested review from a team as code owners December 20, 2022 06:03
@sambhav sambhav merged commit 65bc4f3 into buildpacks-community:main Dec 20, 2022
Copy link

@dfreilich dfreilich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, and glad it was merged! Just a few small nits

"github.com/sclevine/spec/report"
)

func TestIternal(t *testing.T) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TestInternal?

func testReadPrompt(t *testing.T, when spec.G, it spec.S) {
when("Reading a prompt file", func() {
it("reads a correct prompt file", func() {
tmpDir, _ := ioutil.TempDir("", "test")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: You can use t.TempDir() to simplify this, and not require the explicit os.RemoveAll

Comment on lines +27 to +29
f, _ := os.Create(promptFile)
f.Write([]byte(correctPromptFile))
f.Close()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: You can use os.WriteFile() to simplify this, if you're anyways closing the file descriptor here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants