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

Auto Sync Registry if no codemod available #195

Merged
merged 3 commits into from
Feb 5, 2024
Merged

Conversation

Harsh24893
Copy link
Contributor

Summary

Using codemod list without having codemods available in the local directory, shows nothing to users

Users are supposed to perform 'codemod syncRegistry' first and then use codemod list

First time users will not have any idea about codemod syncRegistry, hence adding a function to auto-sync if no codemods are available in the local directory

Test

  • Tested locally by deleting all codemods in /users/harsh-gupta/.intuita directory and checking syncRegistry is being called on using codemod list

  • if there are codemods available, then codemod list just shows the codemods available

Tried writing a test, but vitest doesn't have a good way to set up local directory and I was running into an error, might have to start using jest.

@ghost
Copy link

ghost commented Feb 2, 2024

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

src/executeMainThread.ts Outdated Show resolved Hide resolved
src/handleListCliCommand.ts Outdated Show resolved Hide resolved
src/handleListCliCommand.ts Outdated Show resolved Hide resolved
src/handleListCliCommand.ts Outdated Show resolved Hide resolved
@Harsh24893 Harsh24893 requested a review from grzpab February 2, 2024 20:13
@Harsh24893 Harsh24893 added the enhancement New feature or request label Feb 2, 2024
@Harsh24893 Harsh24893 merged commit 971b832 into main Feb 5, 2024
1 check passed
@Harsh24893 Harsh24893 deleted the auto_sync_registry branch February 5, 2024 18:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants