8 releases

Uses new Rust 2021

0.2.0 Aug 25, 2022
0.1.7 Jan 21, 2022

#885 in Command line utilities

33 downloads per month

Apache-2.0

50KB
1K SLoC

DBang

DBang is a CLI to manage Deno scripts on GitHub

Vocabulary

  • Catalog: A collection of scripts that is dang-catalog.json
  • Script: A script that is in dang-script.json, also called artifact.
  • repo_name: GitHub's repo name, eg. dbang-catalog, my-script
  • repo_full_name: repo name with GitHub's account or organization name, for example linux-china/dbang-catalog

Features

  • Deno versions management
  • Install Apps
  • Aliases & Catalogs
  • Trust and Permissions
  • Unstable
  • Default arguments

Security strategies

  • Prompt for permissions confirm on first run
  • Prompt for permissions confirm after dbang-catalog.json changed, like Android app
  • Trust user's scripts by dbang trust <user>
  • Private repo support by DENO_AUTH_TOKENS

Web Storage Support

DBang use --config ~/.dbang/catalogs/github/linux-china/dbang-catalog.json to separate different catalogs, and it means scripts in same dbang-catalog.json would share the same storage.

References

Dependencies

~14–23MB
~450K SLoC