Skip to content
This repository has been archived by the owner on Sep 21, 2024. It is now read-only.

feat!: orb uses latest Noosphere capabilities #530

Merged
merged 10 commits into from
Aug 4, 2023
Merged

Conversation

cdata
Copy link
Collaborator

@cdata cdata commented Jul 26, 2023

This change proposes a significant re-vamp / update for the Noosphere CLI (known as orb). The CLI has limped along and kept "working" for some time since we first implemented it last Fall. However, it has not received updates to make use of the latest Noosphere capabilities (such as petnames). And, there were some bugs here and there lingering in the uncovered surface area of the implementation.

  • New auth subcommand to manage sphere authority
  • New follow subcommand to follow or unfollow other spheres
  • Spheres render peers in address book to filesystem
  • New integration tests specifically targetting CLI
  • Removes several unimplemented commands
  • Many sub-commands have been regrouped underneath orb sphere

@cdata cdata force-pushed the feat/peer-into-the-orb branch 2 times, most recently from b9c1a77 to 3f10fc6 Compare July 26, 2023 03:47
@cdata
Copy link
Collaborator Author

cdata commented Jul 26, 2023

Related to safer-ffi feature flag change: getditto/safer_ffi#175

layout.md Outdated Show resolved Hide resolved
rust/noosphere-cli/src/native/commands/auth.rs Outdated Show resolved Hide resolved
rust/noosphere-cli/src/native/commands/auth.rs Outdated Show resolved Hide resolved
@cdata cdata force-pushed the feat/peer-into-the-orb branch 12 times, most recently from 9351070 to 4b4f4fb Compare July 27, 2023 20:48
@justinabrahms
Copy link
Contributor

justinabrahms commented Jul 27, 2023

Tried this out locally on an existing sphere I have. How do I show it where my key is?

 ✘  abrahms@subconscious-nix  ~/noosphere/sphere  orb sphere auth list
Error: No key named mykey found!
 ✘  abrahms@subconscious-nix  ~/noosphere/sphere  orb sphere status   
Error: No key named mykey found!
 abrahms@subconscious-nix  ~/noosphere/sphere  find ~/.noosphere/     
/home/abrahms/.noosphere/
/home/abrahms/.noosphere/keys
/home/abrahms/.noosphere/keys/mykey.public
/home/abrahms/.noosphere/keys/mykey.private
/home/abrahms/.noosphere/keys/notesync.public
/home/abrahms/.noosphere/keys/notesync.private

MIGRATION

cp ~/.noosphere/keys/* ~/.config/noosphere/keys/
mkdir .sphere/{peers,slugs} 

@cdata cdata force-pushed the feat/peer-into-the-orb branch 12 times, most recently from 92ce83c to c2f173a Compare July 29, 2023 01:57
@cdata
Copy link
Collaborator Author

cdata commented Jul 29, 2023

Thanks for the callout about the global .noosphere directory @justinabrahms

As of this change, we will be dynamically selecting the default global configuration directory using https://crates.io/crates/directories, so the old location (which may or may not have even been valid in non-WSL Windows) is no longer being used anywhere.

As before, the location can still be customized by embedders of the Noosphere library.

@cdata cdata force-pushed the feat/peer-into-the-orb branch 2 times, most recently from 74fe5e2 to 3bee4aa Compare August 3, 2023 06:56
@cdata cdata marked this pull request as ready for review August 3, 2023 22:28
jsantell
jsantell previously approved these changes Aug 3, 2023
Copy link
Contributor

@jsantell jsantell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@cdata cdata merged commit adfa028 into main Aug 4, 2023
16 checks passed
@cdata cdata deleted the feat/peer-into-the-orb branch August 4, 2023 15:53
@github-actions github-actions bot mentioned this pull request Aug 4, 2023
@github-actions github-actions bot mentioned this pull request Aug 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants