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

App API #76

Open
Tracked by #501
icidasset opened this issue Jul 30, 2020 · 1 comment
Open
Tracked by #501

App API #76

icidasset opened this issue Jul 30, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@icidasset
Copy link
Contributor

icidasset commented Jul 30, 2020

const { app, state } = await sdk.initialise({
  permissions: {
    app: {
      creator: "Creator",
      name: "AppName"
    }
  }
})

// Clone the app to the user's filesystem (haven't decided how this will work yet)
app.clone()

// If the currently authed user has a copy of this app (ie. they cloned it), update those app files.
app.update()

// A sub graph, aka. scoped filesystem, of the app.
//
// ie. where you'd normally have `fs.ls("/private/Apps/Creator/AppName/...")`,
//     or `fs.ls(fs.appPath("..."))`
//     instead you would do:
app.fs.ls("...")

// Database
app.db()
@icidasset icidasset added the enhancement New feature or request label Jul 30, 2020
@icidasset icidasset changed the title Sub Graphs and Apps App API Dec 8, 2020
@expede
Copy link
Member

expede commented Dec 8, 2020

@walkah is going to lead a design sprint for this API this week. Clearing a few things off his plate to let him focus 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants