Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use prompt to setup config.json and root data folder in init command #98

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

JinIgarashi
Copy link
Contributor

closes #97

default variables

  • root_data_folder: ~/cbsurge
  • account_name: undpgeohub
  • container_name: stacdata
  • file_share_name: cbrapida

config file is stored at ~/.cbsurge/config.json.

In Session class constructor, it reads config from ~/.cbsurge/config.json.

prompt

  • when first time run
pipenv run rapida init 
Welcome to rapida CLI tool!
Would you like to setup rapida tool? [y/N]: y
Authentication successful. We need more information to setup from you.
Please enter project root folder to store all data. Enter to skip if use default value [~/cbsurge]: 
The project root folder was created at /root/cbsurge
Please enter account name for UNDP Azure. Enter to skip if use default value [undpgeohub]: 
account name: undpgeohub
Please enter container name for UNDP Azure. Enter to skip if use default value [stacdata]: 
container name: stacdata
Please enter share name for UNDP Azure. Enter to skip if use default value [cbrapida]: 
file share name: cbrapida
Setting up was successfully done!
  • if setup has been done already
pipenv run rapida init 
Welcome to rapida CLI tool!
Your setup has already been done. Would you like to do setup again? [y/N]: n
Aborted!

or if y, continue setting up again

@JinIgarashi JinIgarashi added the enhancement New feature or request label Dec 18, 2024
@JinIgarashi JinIgarashi self-assigned this Dec 18, 2024
@JinIgarashi JinIgarashi temporarily deployed to azure container registry December 18, 2024 11:19 — with GitHub Actions Inactive
@JinIgarashi JinIgarashi temporarily deployed to github container registry December 18, 2024 11:19 — with GitHub Actions Inactive
@JinIgarashi JinIgarashi requested review from iferencik and removed request for iferencik December 18, 2024 11:20
@JinIgarashi JinIgarashi merged commit fc0bde3 into main Dec 18, 2024
3 checks passed
@JinIgarashi JinIgarashi deleted the feat/init-prompt branch December 18, 2024 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

prompt to setup blob account name and fileshare name
1 participant