-
Notifications
You must be signed in to change notification settings - Fork 83
publish command receive the draft path #7
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
Conversation
lib/jekyll/commands/publish.rb
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you validate that this exists?
|
👍 in general |
|
Hey @parkr I have added a validation. |
lib/jekyll/commands/publish.rb
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you print the path here? Something like There was no draft found at '#{draft_path}'. Just to be super explicit :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
4ca2bf6 to
44bc5da
Compare
|
I squashed all the commit for a beautiful merge.. :) |
|
hey @parkr thanks!, can you release this please??? |
|
@blackjid we'll release it as soon as we can. I can't offer anymore info than that. 😃 |
|
ok, thanks! I can wait :) |
This change a little bit the publish command.
I think it make sense for the
postanddraftcommand to receive the name (title) of the post.. that way you can create the file in the corresponding folder.But for
publishit makes more sense to pass the entire path of the draft you want to publish. This is because this way you can use the autocompletejekyll publish _drafts/my-draft-post.md. I think is easier.