- functions: use lower case local variables
- set some configuration variables as constant
- review some variables naming
- test command: use built-in [[ instead of [
- always keep if+then in the same line
- change shebang for portability
Enhancements
- API headers: use OVH API's timestamp instead of user's one to bypass misconfigured host.
- simplify valid target check
- use API_URL when target is set
- help output rework
- refresh README
- when launching --init/--initApp, create the defined profile if missing
- fix profiles listing (bad directory)
- help command : always add --profile argument if profile name is defined
- functions to create keys now launched out of parseArguments()
bugfix :
- fix empty CURRENT_PATH when launching --init/--initApp
enhancements :
- better output for --list-profile output + add 'default' profile
refactoring :
- move initApplication() into createConsumerKey() instead of calling it each time
- add --profile to override default configuration location
- add --list-profile to display available profiles
- rework messages to display command with the current profile if set
Bugfix
- ensure OVH App Key an App Secret are defined when creating consumer key
Enhancements
- when using --init, allow override default "all permissions grants" if --data is set
- add -h/--help