Open KostiantynDrozd-okta opened 3 years ago
src/main/resources/application.[properties|yml]
is the default configuration file for Spring Boot.
When you select the "Spring Boot" option that file will either be created or updated and include the application configuration.
But is it OK, if my current directory was not sprint-boot project?
My current directory Downloads folder, and after I run okta apps create
then src folder was created in Downloads folder.
Don't we need some check, if current folder spring app or not?
I see what you are saying now, I tweaked the description of the issue.
To add to my previous edits, we might want to just prompt the user with an
The Okta CLI did not detect a Spring Boot project in this directory, are you sure you want to continue? [Y/n]
Or maybe instead of creating the files, we just dump the properties to the screen
Running
apps create
in an empty directory and creating a Spring Boot application will create asrc/main/resources/application.properties
while this IS expected. If there is nopom.xml
,build.gradle
,build.gradle.kts
, in that directory it seems odd.Steps to reproduce:
I created a new Okta account via okta-cli. Then I run command okta apps create:
Then I found a new application in Developer console, but also in my current directory 'src' folder was created. Do we need extra description in readme, how okta apps create should work?