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 section command #40

Closed
6 tasks done
Descent098 opened this issue May 17, 2022 · 0 comments
Closed
6 tasks done

Add section command #40

Descent098 opened this issue May 17, 2022 · 0 comments
Projects

Comments

@Descent098
Copy link
Owner

Descent098 commented May 17, 2022

Add new CLI command

ezcv section -n <SECTION_NAME> [-t=<type>]

Steps

  1. Check if theme is in project folder, if not copy to the folder
  2. Generate current metadata if file is not available
  3. Copy current metadata info
  4. Create new files
  5. Insert new section information and resave metadata (including fields where available) (not possible)

Type specification

Options:

  • m or markdown: generate standard markdown section
  • b or blog: Generate a blog
    • Append an o (overview), s (single), f (feed) for which you want to generate or don't include any to generate all
    • check if type starts with a b, then strip literal "blog" and "b", then check for "o", "s", "f" for indications on blog sections
    • Set default "fields" to ["title", "created", "updated"]
  • g or gallery: generate a gallery

TODO

  • Implement command for creating new sections
  • Update docstrings
  • Update command so section info prints if section already exists
    • Update readme and CLI docs once completed

Docs

  • Readme
  • CLI docs
@Descent098 Descent098 created this issue from a note in V0.3.x (To do) May 17, 2022
V0.3.x automation moved this from To do to Done May 19, 2022
@Descent098 Descent098 reopened this May 19, 2022
@Descent098 Descent098 moved this from Done to In progress (0.3.3) in V0.3.x May 19, 2022
V0.3.x automation moved this from In progress (0.3.3) to Done May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant