Categorygithub.com/phantompunk/gupi
repositorypackage
0.0.0-20240918192138-d19cf4f59754
Repository: https://github.com/phantompunk/gupi.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Gupi

Gupi is a CLI to manage and render templates.

gupi-help-screen

Installation

> go install https://github.com/phantompunk/gupi@latest

Usage

Create a template

> gupi create mytemplate --template sample

Render a new file

> gupi new mynewfile --template mytemplate

Edit a template

> gupi edit mytemplate

List all templates

> gupi list

Delete a template

> gupi delete mytemplate

Use the sample template

> gupi create sample --sample

Use template from the web

> gupi create weekly -f "https://gist.githubusercontent.com/phantompunk/a3368b75e1b0ea843d12d96b949581b6/raw/c77344716ab7a69387b742fb098cec661c2ee4d7/weekly-template.md"

Create a template with a dynamic name

> gupi new (date +"%Y-Week-%V.md") --template weekly --output ~/Notes/

Supported Template Functions & Variables

  • Date related variables:
    • .Week
    • .Year
    • .Mon - .Sun
    • .Date