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

All-in-one engineer workflow proposal #213

Open
MisterDA opened this issue Apr 12, 2024 · 1 comment · May be fixed by #214
Open

All-in-one engineer workflow proposal #213

MisterDA opened this issue Apr 12, 2024 · 1 comment · May be fixed by #214
Labels
enhancement New feature or request

Comments

@MisterDA
Copy link
Contributor

MisterDA commented Apr 12, 2024

I've a script which helps me write my weeklies at the end of the week:

ME=MisterDA
TWD=~/Tarides/admin/weekly # Tarides Weekly Directory

WEEK=$(date +%Y)/$(date +%V)
mkdir -p "$TWD/$WEEK"
okra generate >> "$TWD/$WEEK/$ME.md"
$VISUAL "$TWD/$WEEK/$ME.md" # or $EDITOR or `nano` or `vi`
okra lint "$TWD/$WEEK/$ME.md"

git pull && git commit -a -m "$ME week $WEEK" && git push

It could be nice if the location of the weeklies (could default to something below $XDG_DATA_HOME) could be configured. Then, okra generate (or a variant) would know where to write my file instead of writing it to stdout, and instantly open my editor to let me polish it (think of Git's core.editor config option).

Then, okra lint could get smarter by linting my latest weekly by default.

A new okra edit command could generate my latest report, spin up my editor with the report opened, and run the linter when the editor exits.

@gpetiot
Copy link
Member

gpetiot commented Apr 12, 2024

I like the idea, I opened #214 to experiment and share ideas.

@gpetiot gpetiot added the enhancement New feature or request label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants