awmottaz / supd Goto Github PK
View Code? Open in Web Editor NEWTrack your daily scrum updates
License: MIT License
Track your daily scrum updates
License: MIT License
The following is a list of minimum requirements for a v1 release.
$HOME/updates.json
file for updatesset
set plan <string>
sets the plan for today
--force
/-f
flag to overwrite planadd
add done <string>
adds to done listview
view update
shows the update for today (yesterday's done list + today's plan)
--last <number>
shows last number updates--since <date>
shows updates since dateview plan
shows today's planview done
shows today's completed tasksedit
command opens the updates file for manual editingVERSION
file
GOOS
and GOARCH
valuesSet up GitHub actions to
One issue I have with the current API is the ambiguity when providing flags. Take the plan
command for example. There are three things I can do with a plan:
--force
flag to overwrite)--view
flag--delete
flagWhat happens if I ran this?
supd plan "This is a plan" --view --delete
It is not obvious what would happen, and there is choice left to the implementation that the user would just discover after they ran this.
What about a different API, following the pattern from the Cobra docs:
The pattern to follow is
APPNAME VERB NOUN --ADJECTIVE
.
Then we should have the following commands:
supd set plan <string> [--force]
supd view plan
supd delete plan
This is clear. It is impossible to write an ambiguous command this way. It also opens up the possibility for extending functionality with new adjectives, such as for viewing the plan on a different day.
supd view plan --date 2020-02-29
Cobra supports setting a context on a command. This should be leveraged to simplify I/O with the supd file, such as by parsing the file into the context at the root level and just accessing it within commands. If the details ofloading, parsing, and flushing changes can happen at the root level, that would be a great abstraction for the individual commands.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.