Coder Social home page Coder Social logo

agenda's Introduction

Todo list

Simple implementation of a todo list/agenda.

Installation

Currently the app uses /etc/agenda/agenda.conf as configuration, which should be a file like the agenda.conf in the root. It contains only one entry, namely database, which is the file containing all the stuff.

The program doesn't yet create the file because honestly I have no idea how to do "create file if it doesn't exist" stuff yet. Hints are always welcome.

Also try to put the executable in /usr/local/bin/agenda for fast access.

Usage

Easy:

cargo run -- add Make a todo list -d "1 10 2100"

or, after copying the executable:

agenda add Make a todo list -d "1 10 2100"

Makes a new item in the todo list with deadline 1 October 2100. The format is <D> <M> <Y> [h] [m] [s]

agenda list

shows what you have to do, with the -t option putting the item with the closest deadline on top and -sgoing for a one-line-per-item output, and

agenda delete 5

deletes the item that starts with "Event 5".

License.

I hacked this thing together in three hours, quickly wrote a readme, and posted it online. Do you really think I had the time to look into licenses? I needed the functionality, kay?

If my code looks ugly and you know a better way, send me a notif.

If my code wipes your hard drive (No idea how that could ever happen since everyone has an SSD nowadays), I'm not to blame.

If you think I'm awesome and you'll devote your entire life and income to my happiness: I'm flattered. Thank you.

If you hate me and want me to die: I'm not flattered at all.

Comments

Seriously, any comments about how I could improve the code, the readme, or my love life are more than welcome.

PS Does anyone know a crate that converts human readable dates (like 'next wednesday at 5pm') into a fixed date? Python has such thing; Rust apparently doesn't.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.