Kaitian Xie

Results 15 comments of Kaitian Xie

Hi @rishabhdeepsingh . I just made some progress on this, see: https://github.com/algobot76/idea-chelperx/pull/2

> This looks great @algobot76 , but not sure if they are accepting any PRs yet. That's why I merged the PR to my [fork](https://github.com/algobot76/idea-chelperx), which I'm working on in...

> A great proposal. Would you like to take over this feature? sure

The linked list is used to record the insertion order. This is how OrderedDict is implemented in Python as well (see: https://stackoverflow.com/questions/34496582/is-ordereddict-a-tree).

Also: https://docs.oracle.com/javase/8/docs/api/java/util/LinkedHashMap.html

> Any new contributor interested in taking this one? I'm no longer a new contributor, but you can assign it to me.

> @algobot76 any update on this issue? If you are busy, we can reassign this one to another community member :) Sorry, I'm quite busy these days and don't have...

The main idea is to check if the directory `cmd/plugin/{plugin_name}` exists before plugin validation. The `mainGoDirTpl` template string in internal/pkg/develop/plugin/template/main.go can be used to get the directory path.

`DirExists` method from spf13/afero/util can be used to check the existence of the plugin directory.