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

[FEATURE]: Load a global koinosrc file if one is not found in your home directory #157

Closed
1 task done
jredbeard opened this issue Nov 19, 2022 · 2 comments
Closed
1 task done
Labels
enhancement New feature or request stale

Comments

@jredbeard
Copy link
Contributor

jredbeard commented Nov 19, 2022

Is there an existing issue for this?

  • I have searched the existing issues

New feature

As a CLI user who installed the app via a package manager I would like the ability to have a global koinosrc file loaded in if one is not in my home directory. Because of this, the app will "just work" for me on koinos mainnet after installing. This approach provides sane defaults for users while keeping the code chain agnostic and part of the overall framework.

Connecting to the default mainnet RPC and having the contracts loaded in for koinos mainnet is very valuable for user experience. If installing via package managers a .koinosrc may not be automatically placed in a home directory (because for example on Linux you would probably install with sudo apt-get install koinos-cli -y)

Anything else?

For Linux the global koinosrc location would probably be: /etc/koinos-cli/koinosrc-default
For macOS the global koinosrc location would probably be: /Library/Application Support/koinos-cli/koinosrc-default

It would probably be fine to use runtime.GOOS to detect the platform, but, if this app has other OS specific requirements then it should probably be handled the same way as those. Build constraints are another way to handle this.

This issue will also require #158 to be completed before package manager installations become available.

@koinos-ci
Copy link

This issue is stale because it has been open for 30 days with no activity.

@koinos-ci
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

@koinos-ci koinos-ci closed this as not planned Won't fix, can't repro, duplicate, stale Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Projects
None yet
Development

No branches or pull requests

2 participants