denoland / denoland/deno_task_shell

Cross platform open file

Open
#122 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
139
Forks
25
PR merge metrics
No merged PRs in 30d

Description

I'm migrating to using pixi tasks to run various python-related scripts. Most of these generate some output that the user typically wants to open in the default application on their desktop. It would be convenient to have a built-in cross-platform command in the task shell to open files in the desktop.

On macos, this is done with `open path/to/file.txt`, and spaces can be handled with quoting `open "path/to/file with space.txt"`
On windows (powershell), `.\path\to\file.txt` seems to work, and spaces should be quoted like `.\"path\to\file with space.txt"`
I don't have access to any non-apple unix platform at the moment, but a quick google indicates `xdg-open` as the equivalent to macos `open`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.