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

output templates #36

Open
notnmeyer opened this issue Sep 10, 2024 · 2 comments
Open

output templates #36

notnmeyer opened this issue Sep 10, 2024 · 2 comments

Comments

@notnmeyer
Copy link
Owner

would be neat to have customizable templates for displaying logs for things like standup. something that captures yesterday and todays plans, similar to daylog show -- yesterday && daylog show

@notnmeyer
Copy link
Owner Author

daylog show --template standup would render templates/standup.tmpl:

yesterday:
{{ .Show "yesterday" }}

today:
{{ .Show "today" }}

where Show(log string) takes a string identifying which days log to use. might want a way to get the most recent log that isn't today's, so you can get last Fridays log on Monday, or after vacation, etc.

Show("previous")?

@notnmeyer
Copy link
Owner Author

notnmeyer commented Nov 4, 2024

another thought, maybe support showing multiple days in the cli command?

daylog show -- yesterday, today

not the same as templating the output, but abbreviates what im doing for standups: daylog show -- yesterday && daylog show

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

No branches or pull requests

1 participant