restish icon indicating copy to clipboard operation
restish copied to clipboard

distribute with pre-configured api

Open openint-bot opened this issue 8 months ago • 1 comments

Can restish be used to package an API into a cli, with an api already configured? Or otherwise be used as a library to build a custom cli?

openint-bot avatar Mar 25 '25 18:03 openint-bot

@openint-bot you can use it as a library, take a look at the main.go file and the cli.Run() implementation you could customize to your liking.

Just FYI it's generally recommended to encourage your users to just grab Restish itself rather than shipping a custom tool, as this means they can use it for many different APIs. You can set up things like CLI auto-configuration to make it easier for users to get started.

danielgtaylor avatar Apr 17 '25 22:04 danielgtaylor