keystone icon indicating copy to clipboard operation
keystone copied to clipboard

enable export of cli from keystone

Open gautamsi opened this issue 4 years ago • 8 comments

this lets me run keystone programmatically from another nodejs app

import { cli } from '@keystone-next/keystone/scripts/cli';

gautamsi avatar May 08 '21 17:05 gautamsi

🦋 Changeset detected

Latest commit: 9036f5e25fc100405254418c7d690098d18dfac6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@keystone-6/core Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar May 08 '21 17:05 changeset-bot[bot]

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/keystonejs/keystone-next-docs/3X82CrpEC67uVgTVk77Xf5qbcXYH
✅ Preview: https://keystone-next-docs-git-fork-gautamsi-export-cli-keystonejs.vercel.app

vercel[bot] avatar May 08 '21 17:05 vercel[bot]

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 9036f5e25fc100405254418c7d690098d18dfac6:

Sandbox Source
@keystone-6/sandbox Configuration

codesandbox-ci[bot] avatar May 08 '21 17:05 codesandbox-ci[bot]

It looks like there hasn't been any activity here in over 6 months. Sorry about that! We've flagged this issue for special attention. It wil be manually reviewed by maintainers, not automatically closed. If you have any additional information please leave us a comment. It really helps! Thank you for you contribution. :)

stale[bot] avatar Sep 11 '21 00:09 stale[bot]

@gautamsi could you rebase this? LGTM

dcousens avatar Nov 22 '21 05:11 dcousens

@dcousens done. also added changeset.

gautamsi avatar Nov 22 '21 13:11 gautamsi

@gautamsi is there a particular reason spawning a CLI process wasn't the preferred approach to the problem that I assume this is trying to resolve?

dcousens avatar Nov 30 '21 02:11 dcousens

I was trying to run it programmatically when embedded inside the ElectronJS. When it is inside packed archive it does have lot of problems when accessing various directories if I try to run this by spawning new/child process. I have tested by exporting cli and it worked.

gautamsi avatar Nov 30 '21 04:11 gautamsi

@dcousens should we close this?

gautamsi avatar Aug 15 '22 14:08 gautamsi

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
keystone-next-docs ✅ Ready (Inspect) Visit Preview Aug 16, 2022 at 2:51AM (UTC)

vercel[bot] avatar Aug 16 '22 01:08 vercel[bot]