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

[Request] Arduino CLI #6

Closed
DRSDavidSoft opened this issue Oct 27, 2024 · 1 comment
Closed

[Request] Arduino CLI #6

DRSDavidSoft opened this issue Oct 27, 2024 · 1 comment

Comments

@DRSDavidSoft
Copy link

Hi there, I just found this awesome project, impressing to see these new completions! 👍🏻

I was wondering if I could ask for a new completion, for the arduino-cli project. I originally asked for this in vladimir-kotikov/clink-completions#177, but I'm not very proficient in lua in order to contribute solid code myself, and as Chris doesn't use them, he was unable to help in this regard.

These tools are very useful for embedded development, and I'm interested to have a go with Haxe, to see if I could contribute some code for this.

If possible, I would appreciate it if you could consider adding this to more-clink-completions, even a starting point, so that I could contribute and add more to it.

Thanks! 😄

@sebthom
Copy link
Owner

sebthom commented Oct 28, 2024

You can have a look at the exising commands under https://github.com/sebthom/more-clink-completions/tree/v2/src/more_clink_completions/completions Since Haxe is type-safe implementing new commands is pretty straight forward.

class ArduinoCli {

   static final COMMANDS = [
     "board",
     "burn-bootload",
      // ... more commands
   ]

   public static function register() {
      Clink.argMatcher("arduino-cli").setDelayedInitializer(registerNow);
   }

   static function registerNow(parser:ArgMatcher, commandWord:String) {
      parser.addFlags([
         "-h", "--help",
         "-v", "--verbose",
         // ... more flags
      ])
         .addArg(COMMANDS)
         .noFiles();
   }
}

@sebthom sebthom closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 2024
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

2 participants