igor-petruk/scriptisto
소개
컴파일 언어로 스크립트를 작성할 수 있게 해 주는 언어 독립적인 "shebang 인터프리터"입니다.
프로그래밍 언어 및 런타임측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +2
- in 1 month
- +4
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalScriptisto
It is tool to enable writing one file scripts in languages that require compilation, dependencies fetching or preprocessing.
It works as a "shebang" for those scripts, extracting build instructions from comments. If a script is changed, scriptisto rebuilds it and caches the result. If a script was already built, scriptisto immediately delegates to a binary with only <1 ms overhead.
Builds in Docker without installing a compiler on a host system are possible.
Advantages and use-cases are listed in the Wiki.
Demo
#!/usr/bin/env scriptisto
#include <stdio.h>
#include <glib.h>
// scriptisto-begin
// script_src: main.c
// build_cmd: clang -O2 main.c `pkg-config --libs --cflags glib-2.0` -o ./script
// scriptisto-end
int main(int argc, char *argv[]) {
gchar* user = g_getenv("USER");
printf("Hello, C! Current user: %s\n", user);
return 0;
}
$ chmod +x ./script.c
$ ./script.c
Hello, C! Current user: username
Note: some templates such as rust take more time to build during the first time. The default behaviour is to supress the build logs, so do not be discouraged that you do not immediately see any output. More info in the wiki.
Installation
Scriptisto is available as a prebuilt statically-linked standalone binary or distributions packages at Releases or at Crates.io.
Please proceed to the Installation for instructions.
Documentation
Proceed to our Wiki.
Disclaimer
This is not an officially supported Google product.
관련 프로젝트 살펴보기
불러오는 중…