GithubHelp home page GithubHelp logo

family-tree's Introduction

family-tree

github.com/Hrit99/family-tree

A cli command to track people relationship records.

features

It provides feature to :

1. add a new person (name and gender). [People can have same names and logic assigns new ids to them. Used hashmap to store and search a person.] Gender is optional i.e. if not specified using tag, the person is treated as unknown gender and logic is implemented in that manner.

    family-tree add person <name> -g <gender(male/female)>


2. create a new relation (relation name, relation opposite to it i.e. father : child (son/daughter)). [New relations with new names can be created i.e. maternal-aunt. Relations persists and need not to be created again. ] Gender is optional i.e. if not specified using tag, the relation is treated as unknown gender and logic is implemented in that manner.

    family-tree add relation <relation> -g <gender(male/female)>


3. connect two person with a relation created. [Prompts to select person with id if more than one person with same name exists.]

    family-tree connect <name1> as <relation> of <name2>


4. queries :

    a. count people with particular relation to a person.

        family-tree count <relation> of <name>
    
    b. get person with particular relatioon to a person.

        family-tree get <relation> of <name>

IF USING SPACES IN NAMING PERSON OR RELATIONS THEN USE DOUBLE QUOTES i.e. "SOME NAME"

Installation

Steps :-

1. Get family-tree module
    go get github.com/Hrit99/family-tree@latest

2. Install family-tree binary
    go install github.com/Hrit99/family-tree@latest

family-tree's People

Contributors

hrit99 avatar

Watchers

 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.