qri-io / rfcs

Request For Comments (RFCs) documenting changes to Qri
MIT License
12 stars 6 forks source link

RFC Request: Index number to refer to datasets #22

Open dustmop opened 6 years ago

dustmop commented 6 years ago

When we run qri list, we get output like this:

1  b6/PLUTO_manhattan
    /ipfs/Qmb4JwhS6iMHatFuZcTFR7C6p5nRkxwmnJdDFfSSihmZYW
    12 MBs, 42966 entries, 0 errors
2  b6/qri_growth
    /ipfs/QmRW74zHw2pdmDnmASDirjxztxDj5B5FdXCjZ9ApyTD2to
    Qri Growth Stats
    Using Qri to track the growth of Qri
    660 bytes, 1 entries, 0 errors

The numbers on the left-most column (1 and 2) should be usable to refer to these datasets. So I could run qri get 1 to get information about b6/PLUTO_manhattan. Implementing this requires:

This feature resembles git's stash command, which outputs indexed names for stashes when listing, that can be used to refer to stashes in future commands.