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

feat: New option date for new post cli command #1152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tglman
Copy link
Contributor

@tglman tglman commented Oct 3, 2023

Hi,

this add a new option for provide a date when create a new post in the cli

Examples:

cobalt new "Last post" --date "2023-10-02 10:10:10"
cobalt new "Last post" --date "now"

bye

@epage
Copy link
Member

epage commented Oct 3, 2023

Could you expand on why vs just editing the frontmatter directly?

@tglman
Copy link
Contributor Author

tglman commented Oct 3, 2023

Hi,

yes just for the option now that is actually quite useful, I initially thought to make the new just set the date to now all the times by default, without have the additional cli option, but this seems a bit more flexible, if you think is better I can do a PR with just setting the date to now without the option.

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.

None yet

2 participants