proton_shell

Native shell helpers for MoonBit.

shell
desktop
native
windows
moon add moonbit-community/proton_shell@0.1.16
Download zip
Version
0.1.16
License
Apache-2.0
Last updated
3 days ago
Downloads
6
README

moonbit-community/proton_shell does not have a README file

#
ensure_supported

fn ensure_supported() -> Result[Unit, String]

Verifies that the current native platform is supported by this package.

Returns Ok(()) on supported platforms and an explanatory Err(String) on unsupported targets.

#
is_supported

fn is_supported() -> Bool

Returns true when the current native target has a shell backend that this package knows how to call.

#
open

fn open(target : String) -> Result[Unit, String]

Opens target through the native shell.

On Windows this calls ShellExecuteW with the "open" verb. Returns Ok(()) on success or Err(String) on unsupported platforms or launch failures.

#
reveal_item

fn reveal_item(path : String) -> Result[Unit, String]

Reveals path in the native file manager.

On Windows this opens Explorer with /select,"<path>". Returns Ok(()) on success or Err(String) on unsupported platforms or launch failures.

Source Files

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io