blob: 8eb2ff212ffafbfcf28dabb7b9933ec455b5e321 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
|
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>run — script runner</title>
<style>
body {
margin: 0;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: #ffffe8;
font-family: "Times New Roman", Times, serif;
padding: 24px;
}
.box {
max-width: 640px;
width: 100%;
background: #fffff0;
border: 3px ridge #808080;
padding: 32px 36px;
}
h1 {
font-size: 42px;
font-weight: normal;
margin: 0 0 2px 0;
letter-spacing: 2px;
}
.tagline {
font-size: 16px;
font-style: italic;
color: #555;
margin: 0 0 20px 0;
border-bottom: 1px solid #ccc;
padding-bottom: 12px;
}
h2 {
font-size: 18px;
font-weight: bold;
margin: 18px 0 8px 0;
color: #333;
}
h2:first-of-type {
margin-top: 0;
}
p {
font-size: 15px;
line-height: 1.6;
margin: 6px 0;
color: #222;
}
code,
tt {
font-family: "Courier New", Courier, monospace;
font-size: 14px;
}
.lang-grid {
display: flex;
flex-wrap: wrap;
gap: 4px 10px;
margin: 8px 0 12px 0;
}
.lang-grid span {
background: #eee;
border: 1px solid #bbb;
padding: 2px 8px;
font-size: 13px;
font-family: "Courier New", monospace;
}
.cmd-box {
background: #222;
color: #00dd00;
font-family: "Courier New", monospace;
font-size: 13px;
padding: 10px 14px;
border: 2px inset #808080;
margin: 6px 0 10px 0;
overflow-x: auto;
white-space: nowrap;
line-height: 1.7;
}
.cmd-box .prompt {
color: #00dd00;
}
.cmd-box .comment {
color: #888;
}
.cmd-box .highlight {
color: #ffff00;
}
.cmd-box .hl2 {
color: #00ddff;
}
.cmd-box .label {
color: #fff;
font-weight: bold;
margin-bottom: 2px;
}
.footer {
margin-top: 18px;
padding-top: 10px;
border-top: 1px solid #ccc;
font-size: 13px;
color: #666;
}
.footer a {
color: #222;
text-decoration: underline;
}
.footer a:hover {
color: #888;
}
@media (max-width: 500px) {
.box {
padding: 20px 16px;
}
h1 {
font-size: 30px;
}
}
</style>
</head>
<body>
<div class="box">
<h1>run</h1>
<p class="tagline">Screw "make", I just want a script runner</p>
<h2>What is this?</h2>
<p>
A cross-platform script runner. Drop any script into
<tt>.run/src/bin/</tt> and run it by name. No makefiles, no
justfiles, no config.
</p>
<div class="lang-grid">
<span>[Rust] .rs</span>
<span>[C#] .cs</span>
<span>[Python] .py</span>
<span>[Ruby] .rb</span>
<span>[Perl] .pl</span>
<span>[Go] .go</span>
<span>[Zig] .zig</span>
<span>[Nim] .nim</span>
<span>[Shell] .sh</span>
<span>[Binary] (no ext)</span>
<span>[PowerShell] .ps1</span>
<span>[Binary] .exe</span>
</div>
<h2>Install</h2>
<div class="cmd-box">
<span class="label">:: Linux</span><br />
<span class="prompt">$</span> curl -fsSL
https://catilgrass.github.io/run/install.sh | bash<br />
<span class="prompt">$</span> chmod +x run.sh
</div>
<div class="cmd-box">
<span class="label">:: Windows</span><br />
<span class="prompt">PS></span> iwr -useb
https://catilgrass.github.io/run/install.ps1 | iex
</div>
<p>
<i
>Or grab it manually from
<a href="https://github.com/catilgrass/run">GitHub</a>.</i
>
</p>
<h2>Usage</h2>
<div class="cmd-box">
<span class="prompt">$</span> ./run.sh
<span class="comment"># list all scripts</span><br />
<span class="prompt">$</span> ./run.sh
<span class="highlight">myscript</span>
<span class="comment"># run by name</span><br />
<span class="prompt">$</span> ./run.sh
<span class="highlight">3</span>
<span class="comment"># run by number</span><br />
<span class="prompt">$</span> ./run.sh
<span class="highlight">3</span>
<span class="hl2">Hello World</span>
<span class="comment"># with arguments</span>
</div>
<div class="footer">
<a href="https://github.com/catilgrass/run">GitHub</a>
·
<a href="https://github.com/catilgrass/run/blob/master/LICENSE"
>WTFPL</a
>
</div>
</div>
</body>
</html>
|