Skip to content
This repository was archived by the owner on Apr 18, 2023. It is now read-only.

Commit 1f34590

Browse files
committed
add basic CLI
1 parent acef550 commit 1f34590

20 files changed

+5691
-0
lines changed

Makefile

+14
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
11
all:; dapp build
22
test:; dapp test
3+
4+
SHELL = bash
5+
dirs = {bin,libexec}
6+
prefix ?= /usr/local
7+
8+
dirs:; mkdir -p $(prefix)/$(dirs)
9+
files = $(shell ls -d $(dirs)/*)
10+
install:; cp -r -n $(dirs) $(prefix)
11+
link: dirs; for x in $(files); do ln -s `pwd`/$$x $(prefix)/$$x; done
12+
uninstall:; rm -r $(addprefix $(prefix)/,$(files))
13+
14+
check:; ! grep '^#!/bin/sh' libexec/*/* && \
15+
grep '^#!/usr/bin/env bash' libexec/*/* | \
16+
cut -d: -f1 | xargs shellcheck

bin/sai

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
PATH=${0%/*/*}/libexec/sai:$PATH sai "$@"

libexec/sai/node_modules/bignumber.js/LICENCE

+23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)