Download packages/tauri-plugins/examples/api/src/views/Cli.svelte from echodict/readest: direct link, hf CLI and curl.
- Browser
- Download file 677 Bytes
-
https://huggingface.co/datasets/echodict/readest/resolve/main/packages/tauri-plugins/examples/api/src/views/Cli.svelte
- Command line
-
hf download hf://datasets/echodict/readest/packages/tauri-plugins/examples/api/src/views/Cli.svelte
-
curl -L -o Cli.svelte https://huggingface.co/datasets/echodict/readest/resolve/main/packages/tauri-plugins/examples/api/src/views/Cli.svelte
677 Bytes
| <script> | |
| import { getMatches } from '@tauri-apps/plugin-cli' | |
| export let onMessage | |
| function cliMatches() { | |
| getMatches().then(onMessage).catch(onMessage) | |
| } | |
| </script> | |
| <div> | |
| This binary can be run from the terminal and takes the following arguments: | |
| <code class="code-block flex flex-wrap my-2"> | |
| <pre> | |
| --config <PATH> | |
| --theme <light|dark|system> | |
| --verbose</pre> | |
| </code> | |
| Additionally, it has a <code>update --background</code> subcommand. | |
| </div> | |
| <br /> | |
| <div class="note"> | |
| Note that the arguments are only parsed, not implemented. | |
| </div> | |
| <br /> | |
| <br /> | |
| <button class="btn" id="cli-matches" on:click={cliMatches}> | |
| Get matches | |
| </button> | |