bash

command
v0.0.0-...-9853328 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 5 Imported by: 0

README

bash

English | 简体中文

This is an experimental project that provides a cross-platform bash interpreter. It's worth nothing that it'll not be packaged into yock, but distributed as a module.

Import in yock script

local sh = import("bash")
-- load by string
sh([[
    url="github.com/ansurfen/cushion/yock.load.sh"
    mkdir -p e/b
    cp ./a ./b
    echo $url
    echo $GOPATH | echo
    rmdir c
    rmdir d
    rm -r a
    rm -r b
    rm -r d
    curl https://www.github.com | echo
    whoami | echo
    pwd | echo
    touch a.txt
    curl -o . -O https://repo.spring.io/ui/native/release/org/springframework/boot/spring-boot-cli/1.4.3.RELEASE/spring-boot-cli-1.4.3.RELEASE-bin.zip
]])
-- load by file
sh("#load yock.load.sh")

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL