Giter Club home page Giter Club logo

rusty-diary's Introduction

rusty-diary

Just a CLI diary in Rust

Installation

Use the following commands:

  1. git clone https://github.com/mbalamat/rusty-diary
  2. cd rusty-diary
  3. cargo build --release

Step 3 will compile the code into a single binary located in ./target/release/rusty-diary Copy that binary in a directory that's in your path. Use echo $PATH in order to find the directories that are in your $PATH.

eg. /usr/local/bin is in my $PATH so I'll copy the binary there as such:

  1. cp ./target/release/rusty-diary /usr/local/bin/diary

You should be able now to use diary

Usage

diary <whatever you want to add to you diary goes here>

eg. diary Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Currently, in order to see your past diary entries use cat and jq. cat ~/.rusty-diary/data.json|jq

the output will be something like:

[
  {
    "datetime": "2021-02-21T16:06:16.828983",
    "entry": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
  }
]

rusty-diary's People

Contributors

mbalamat avatar

Watchers

 avatar  avatar

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.