GithubHelp home page GithubHelp logo

Add 'version' command about orbit-db-cli HOT 6 CLOSED

orbitdb avatar orbitdb commented on June 6, 2024
Add 'version' command

from orbit-db-cli.

Comments (6)

haadcode avatar haadcode commented on June 6, 2024 1

This was done by @prabodhmeshram in #5.

Thank you for contributing! 🎉

from orbit-db-cli.

prabodhmeshram avatar prabodhmeshram commented on June 6, 2024

Hi @haadcode, I could take a stab on this.

from orbit-db-cli.

haadcode avatar haadcode commented on June 6, 2024

@prabodhmeshram absolutely! Thanks you for jumping in ❤️

Take a look at the commands in src/commands/ for a reference, perhaps id is a good example.

What you should do is add version.js to src/commands/ and put everything in that one file. It'd be great to have one test for this (just to make sure it return the right version number and works). See test/ for a test example.

Is that enough for you to get started?

from orbit-db-cli.

haadcode avatar haadcode commented on June 6, 2024

@prabodhmeshram note that I just merged a new version to master, you should use that as your starting point.

from orbit-db-cli.

prabodhmeshram avatar prabodhmeshram commented on June 6, 2024

Sure @haadcode, Thanks for the info. Well I did forked the repo and started to look into the application structure. I tried to install the cli through npm and github as mentioned in the readme, but it failed for me.

Below is the error when installing from npm:

npm ERR! code 1
npm ERR! Command failed: /usr/bin/git checkout fix/default-filename
npm ERR! error: pathspec 'fix/default-filename' did not match any file(s) known to git.
npm ERR! 

Below is the error when installing from github:

npm ERR! code 128
npm ERR! Command failed: /usr/bin/git checkout 356c9e9d162a8148e7946db51121ea9d468c4f48
npm ERR! fatal: reference is not a tree: 356c9e9d162a8148e7946db51121ea9d468c4f48
npm ERR! 

My system Specs:
OS : Ubuntu 14.04
Node : v8.1.0
Npm : 5.0.3

Am I doing something wrong. Can you please guide me on this. Let me know If I am missing something. Thanks for your help

from orbit-db-cli.

prabodhmeshram avatar prabodhmeshram commented on June 6, 2024

Npm install worked for me after I took the latest changes from the repo.

from orbit-db-cli.

Related Issues (17)

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.