Skip to content
/ oneshot Public

Oneshot makes it easy to use CLI programs inside a temporary container.

License

Notifications You must be signed in to change notification settings

lkdm/oneshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oneshot

Oneshot executes arbitrary scripts or starts a shell in a minimal temporary Podman container. It is designed to be an ergonomic interface for creating one-off scripts inside of short-lived temporary containers.

Usage

Interactive shell

oneshot shell

Run command

Download a YouTube video

This script installs yt-dlp using uv and runs it.

oneshot run -s "yt-dlp dQw4w9WgXcQ" --from-uv yt-dlp

Development

You can develop within a devcontainer that includes Rust, Homebrew, NeoVim, Docker-outside-of-docker, and Podman features.

devpod up .
devpod ssh .

Then just use cargo to interact with the application. Arguments after the -- are read by the app.

cargo run -- --help

Example

cargo run -- run -s "yt-dlp dQw4w9WgXcQ" --from-uv yt-dlp

About

Oneshot makes it easy to use CLI programs inside a temporary container.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages