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

implement macros & includes #8

Merged
merged 6 commits into from
Aug 12, 2019
Merged

Conversation

seletskiy
Copy link
Collaborator

No description provided.

main.go Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
}

creds, err := GetCredentials(args, config)
stdlib, err := stdlib.New(api)
Copy link
Owner

Choose a reason for hiding this comment

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

can we do something less abstract? maybe longer name but more obvious about purposes of the package

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I can't come up with a better name. Do you have some variants in mind?

pkg/mark/macro/macro.go Outdated Show resolved Hide resolved
pkg/mark/macro/macro.go Outdated Show resolved Hide resolved
`{{ else }}`,
/**/ `{{ .Body }}`,
`{{ end }}`,
),
Copy link
Owner

Choose a reason for hiding this comment

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

just a quick note: we could also store these templates in files and distribute them along with binary

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep, but on the other hand it will make tool not ready to use after go get/go install.

Copy link
Owner

@kovetskiy kovetskiy left a comment

Choose a reason for hiding this comment

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

Leave a comment

@seletskiy seletskiy requested a review from kovetskiy August 9, 2019 09:51
@kovetskiy kovetskiy merged commit 2369954 into kovetskiy:master Aug 12, 2019
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.

2 participants