-
Notifications
You must be signed in to change notification settings - Fork 5
#21: Create add subcommand for the CLI [replacement]
#50
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
base: main
Are you sure you want to change the base?
Conversation
add subcommand for the CLI [replacement]
|
I took it from the older PR, please check if something is already implemented:
|
|
@kirillt I think the best way to do this is using the following feature: https://tauri.app/v1/guides/features/cli/ I might need to refactor again. |
|
@rizary I remember you mentioned that this version is not complete yet. Just FYI: right now, the latest AppImage build crashes during startup. |
|
@kirillt yes, I'm planning to fix it this week. The problem is I can't test it on the dev env. I already asked in their discord, so maybe we can fix it within this week. |
|
@rizary just curious, what do you mean by dev env here? |
|
So apparently we need to run `npm run dev -- -- <option>`. But it's not
working too and I'm still trying to figure it out. I already try with `npm
run dev -- -- -- option` assuming we have npm option, tauri option, and
cargo option. But nothing works.
…On Wed, Dec 20, 2023, 8:34 PM Kirill Taran ***@***.***> wrote:
@rizary <https://github.com/Rizary> just curious, what do you mean by dev
env here?
—
Reply to this email directly, view it on GitHub
<#50 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABXDECDRJ55KVJ3KBMCQRWLYKLSPNAVCNFSM6AAAAAA7L3HBHCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRUGQ4DGOBRG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
@rizary got it, thanks for the explanation. |
|
| pub description: Option<String>, | ||
| } | ||
|
|
||
| pub fn process_help() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But can it be automatically generated? I think, clap crate allows to derive the help message from actual command definitions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noted, let me check. It's just because we use tauri's cli config, which is also using clap, but when I change the help in the configuration, it didn't change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gwendalF could you look into this?
|
from this commit onward, we need to make sure ARK-Builders/arklib#69 get merged to main first. |
|
|
We've just discussed titles with Andika, and it seems that the perfect UX would be when the user can just paste the link and go away: Let's do it in separate PR and focus on CLI in this one. |
|
|
||
| [dependencies] | ||
| arklib = { git = "https://github.com/ARK-Builders/arklib", rev = "51cfa7d6" } | ||
| arklib = { git = "https://github.com/ARK-Builders/arklib", rev = "5021266" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit refers to this PR:
It's fine for debugging, but seems that we should implement proper error handling before merging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gwendalF could you check if it's difficult to implement error handling without unwrap in arklib?
State after the crash: |
|
- update to the latest arklib that uses atomic files - `link add` to create a resource without spawning GUI - `--add` for spawning temporary GUI
0b677c8 to
c08da21
Compare
Solves:
Replacement for: