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

Add --id flag to zk new #183

Merged
merged 2 commits into from Mar 27, 2022
Merged

Add --id flag to zk new #183

merged 2 commits into from Mar 27, 2022

Conversation

skbolton
Copy link
Contributor

@skbolton skbolton commented Mar 22, 2022

This allows overriding the id generation step and just use a provided
value instead.

@skbolton skbolton changed the title First pass at adding ID override to new notes Add --id flag to zk new Mar 22, 2022
@skbolton
Copy link
Contributor Author

@mickael-menu new to this project and never done any go before. Would love some feedback on the direction I have gone. I am also wondering if there are other tests that I should write and where they are. Thanks!

This allows overriding the id generation step and just use a provided
value instead.
@skbolton skbolton marked this pull request as ready for review March 23, 2022 01:56
@mickael-menu mickael-menu linked an issue Mar 27, 2022 that may be closed by this pull request
Copy link
Collaborator

@mickael-menu mickael-menu left a comment

Choose a reason for hiding this comment

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

Thank you for tackling this @skbolton!

@mickael-menu new to this project and never done any go before. Would love some feedback on the direction I have gone.

It's how I would have implemented it, though I'm not a Go expert.

I am also wondering if there are other tests that I should write and where they are. Thanks!

Not for this feature. I appreciate that you spent the time to add a tesh test case!

tests/fixtures/new/.zk/config.toml Show resolved Hide resolved
internal/core/notebook.go Show resolved Hide resolved
@mickael-menu mickael-menu merged commit 9e33d67 into zk-org:main Mar 27, 2022
@skbolton skbolton deleted the add-id-flag branch March 28, 2022 04:51
@mickael-menu mickael-menu mentioned this pull request Apr 25, 2022
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.

Add flag to override id of new note
2 participants