Closed JackWH closed 4 years ago
@svenluijten Thanks, happy to contribute! I just pushed a few more tweaks to this branch...
forge.json
config file in the user's home directory:
getFileConfig()
function to prefer a hidden ~/.forge.json
file instead~/forge.json
if one exists for backwards-compatibilityforge authorize
will save a hidden file instead.forge.json
configuration file is created for the first time, a JSON key
property is now being set to an empty string:
{}
)forge authorize
has been runSo sorry for the delay on this, but due to what's going on in the world haven't really had the time to check this out in-depth. I will get to it this weekend, I promise!
This weekend? ;) I'm looking into managing backups. That requires https://github.com/themsaid/forge-sdk/pull/67 to be merged but then it would need v2 of the SDK.
Tagged as v0.5.0
!
Btw @barryvdh, I'd be happy to get those backup methods also integrated into this CLI once it makes its way into the SDK. 👍
After being held up by issue #40, I've gone ahead and updated the dependencies used by this package to bring it up to date.
Here's what's changed:
composer.json
to use version^2.0
ofthemsaid/forge-sdk
. Version 2.0 has some new parameters added to certain functions (see here), which I haven't accounted for inforge-cli
— but the function definitions remain backwards-compatible.composer.json
to use version^5.0
ofsymfony/console
andsymfony/process
. This was necessary as the current release oflaravel/homestead
installs version^5.0
of these packages globally, so the existing dependency version^4.0
was causing conflicts that prevented installation.return 0;
to everysymfony/console
inheritedexecute()
function, a new requirement following the version updates.return 0;
indicates the command ran successfully, any other result should be an integer and will be returned as a process exit status to the shell.forge authorize
command to allow for the API key to be passed in as an optional parameter. If no parameter is specified, the user will be prompted to type it in to the terminal window themselves. This change allows programmatic setup of the Forge CLI via other Artisan commands.