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

Export to .code-workspace for VC Code use #103

Open
BigBlueHat opened this issue Nov 2, 2023 · 1 comment
Open

Export to .code-workspace for VC Code use #103

BigBlueHat opened this issue Nov 2, 2023 · 1 comment

Comments

@BigBlueHat
Copy link

BigBlueHat commented Nov 2, 2023

Here's some jq.js code that worked for me--modify for your use (until this gets implemented 😉):

$ gr export . | jq '{folders: [.repos[] | ["..", .path, .name] | join("/") | {path: .}]}'

Output:

{
  "folder": [
    {
      "path": "../org-name/repo-name"
    }
  ]
}

This is heavily based on how I organize my local development space:

dev/
  org-name/
    repo-name/

gr has been a huge help in collecting things across that structure.

@BigBlueHat
Copy link
Author

Note, the ".." bit should be changed to match what sort of output paths you need relative to where you're storing your .code.workspace file.

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

No branches or pull requests

1 participant