Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC Request: Index number to refer to datasets #22

Open
dustmop opened this issue Oct 8, 2018 · 0 comments
Open

RFC Request: Index number to refer to datasets #22

dustmop opened this issue Oct 8, 2018 · 0 comments
Labels

Comments

@dustmop
Copy link
Contributor

dustmop commented Oct 8, 2018

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:

  • having a guarantee that the order of qri list is deterministic over short-term periods. I think this is true right now; it's just the order of the contents of ~/.qri/peers.json
  • having a usable syntax to use index numbers. Datasets can't start with numerals, so I believe using the numbers alone should be okay?

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.

@b5 b5 added the backlog label Feb 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants