Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

a command runner

License

NotificationsYou must be signed in to change notification settings

Naira0/crun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

command run is a simple command runner

Usage

a file with the name of CRUN must be located in the dir you ran the command in

then runcrun command-name

any args you supply after the command name will be given to the orignal command

flags=-release-O-std=C++20files= main.cpp something_else.cpp"spaced filename.cpp"print:// @args will be the runtime arguments    echo crun args@args build:// the '?' operator will call a function if the process does not return 0    gcc@flags@files? $error=> could not build project    $print=> build has been completed// will loop until the script has an errorpy-script:    $loop     python"some script.py"? $end_loop     $print=> script has completed// default will be called if no command name is provideddefault:    $display_commands

new lines are used for termination

and quotes are used for escaping and grouping symbols

it treats emulates the command line envoiroment as well it can

Functions

  • print prints the input

  • error will print the input and exit the command

  • loop will make the command loop

  • end_loop ends the loop

  • display_commands will display existing commands


[8]ページ先頭

©2009-2025 Movatter.jp