Content-Length: 225204 | pFad | http://github.com/calimero-network/core/issues/1118

82 Default selections for CLI variables · Issue #1118 · calimero-network/core · GitHub
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

Default selections for CLI variables #1118

Open
miraclx opened this issue Feb 18, 2025 · 1 comment
Open

Default selections for CLI variables #1118

miraclx opened this issue Feb 18, 2025 · 1 comment

Comments

@miraclx
Copy link
Member

miraclx commented Feb 18, 2025

A lot of operations could benefit from having the ability to select defaults.

A default context, default identity in a context, etc;

  • context identity list <context-id> instead of context identity list <context-id>
  • call <method> instead of call <context> <method> --as <who> etc..

We can take advantage of the Alias API introduced in #1094 & #1114.

The alias name can be default.

The API for defining defaults can be;

context alias add chat-app DJaNFHW9HSt23AJj4R2YA9cERZrAEwuRiBXp8cAAQ1U8
context use chat-app

context identity alias add jake CCG3HwvSFeVgsGkzkv1KLXfwoGKZky9m9FdKWa6vZGS
context identity use jake

but of course, the alias step need not be defined

context use DJaNFHW9HSt23AJj4R2YA9cERZrAEwuRiBXp8cAAQ1U8

context identity use CCG3HwvSFeVgsGkzkv1KLXfwoGKZky9m9FdKWa6vZGS

and when a context has not been aliased or set as default, the required arguments to identity use becomes:

context identity use CCG3HwvSFeVgsGkzkv1KLXfwoGKZky9m9FdKWa6vZGS --context DJaNFHW9HSt23AJj4R2YA9cERZrAEwuRiBXp8cAAQ1U8

And listing (#1117), should take this into account, showing default

@chefsale
Copy link
Member

Althought we haven’t officially launched the bounty program, discussed this issue with @rtb-12 and we agreed he will be implementing the default selections for CLI variables

Once the PRs are merged and KYC has been passed we will be providing an 50 USDC bounty for this issue.

This issue should be several hours of work and ideally implemented in the next month in worst case scenario, but would love to see it earlier if possible.

Good luck and looking forward to being part of the community and contributing more.

Thanks, Sandi.

cc: @miraclx @xilosada

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/calimero-network/core/issues/1118

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy