nosh

command module
v0.0.0-...-5f4d853 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: GPL-2.0 Imports: 9 Imported by: 0

README

nosh

CI

Take starlark, take go and wrap them into a cross-plat shell of sorts.

Motivation is to do basic shell tasks in bazel with something cross-plat, easy to provision via bazel and which tastes like starlark.

See ./quicktest.nosh for examples.

Todo

  • print / printf

  • assert

  • regex

  • defer

  • signal handling

  • set -e (NOTE: there's no exceptions in starlark)

  • set -x

  • json

  • math

  • xml

  • ini/cfg (?)

  • glob/globby

  • hash

  • base64

  • templating

  • getenv/setenv

  • expand env

    • also expand ~ tilde ?
  • sleep

  • dates

  • parallel

  • args

  • cli / argparse ?

  • cli -c

  • tee

  • os.run

    • capture
    • env
    • pipes
    • redirections
    • background
    • timeouts
  • os.distro/kind/os-type/uname

  • os.pkill <name-*>

  • os.https://nim-lang.org/docs/dynlib.html

  • os.getTempDir

  • os.sendSignal

  • os.registry (WIN-ONLY)

  • os.random

  • os.clipboard

  • fs.chdir / cd

  • fs.popd

  • fs.pwd / pwd

  • fs.find

  • fs.join

  • fs.realpath

  • fs.basename

  • fs.symlink-handling

  • fs.copy

  • fs.move

  • fs.exists

    • fs.is_file
    • fs.is_dir
  • fs.mkdir

  • fs.samefile

  • fs.stat

  • fs.read

  • fs.write

  • fs.remove

  • fs.touch

  • fs.mktemp

  • net.ping

  • net.curl

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