fauna / fauna-shell

Interactive shell for FaunaDB
Other
75 stars 16 forks source link

Add improved secret management #301

Closed macmv closed 1 year ago

macmv commented 1 year ago

Ticket(s): ENG-5635

Adds a Secret helper class, which manages a scoped secret.

This makes it so that fauna shell <scope> will append the given scope to the scope in your project file. The behavior is a little weird:

% fauna shell bar
Connected to endpoint: neil-2-us database: foo/bar
Starting shell for database bar
Type Ctrl+D or .exit to exit the shell
bar>

Note that it says "connected to database foo/bar", and then says "Starting shell for database bar."

Not sure if we want to fix this or not, but I think its fine as-is.