fig icon indicating copy to clipboard operation
fig copied to clipboard

Fig Scripts Replacement

Open CoreyGaunt opened this issue 1 year ago • 6 comments

Hello there!

I am an avid user of the Fig Scripts feature, and I am worried about losing all of these tools once the sunset happens. Does anyone have any advice as to how I can go about transitioning those scripts to my local dev environment? My experience in creating CLI tools is veritably zero (which is what made this Fig tool so great for me).

I'm sure it can be done, but have no idea where to start or how.

CoreyGaunt avatar Mar 13 '24 15:03 CoreyGaunt

Specifically, I love the fact that you can have inputs that read off of generators!!

CoreyGaunt avatar Mar 13 '24 15:03 CoreyGaunt

Hi @CoreyGaunt, when you run fig export you'll get all of your Fig Scripts in a JSON format.

You (or the broader open source community) might be able to reimplement the client-side CLI for interpreting the JSON files and executing them.

Some prior art here that might be helpful: https://github.com/charmbracelet/gum

mschrage avatar Mar 13 '24 18:03 mschrage

My other personal recommendations that are sort of close but by no means perfect:

  • Create scripts and add them to your path
  • Build your own CLI with a framework like commander, oclif etc
  • https://github.com/jacobdeichert/mask
  • https://github.com/casey/just

Unfortunately, I don't believe any of these have the ability to easily offer inline suggestions like we were doing with Fig

brendanfalk avatar Mar 13 '24 19:03 brendanfalk

@brendanfalk

Unfortunately, I don't believe any of these have the ability to easily offer inline suggestions like we were doing with Fig

Are there plans to release this feature under Amazon Q or any other Amazon product? It was a major selling point when advocating Fig to my team

Korayementality avatar May 18 '24 15:05 Korayementality