Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLIT

Command Line Interface Toolchain

CLIT is a collection of small command-line utilities designed to make common terminal tasks simpler and faster.

Commands

Command Description
clit fetch Download files from URLs
clit mkcd Create a directory and enter it
clit crun Compile and run a C file
clit nfile Create multiline files from the terminal
clit -h Show help
clit -v Show version

Installation

Clone the repository:

git clone https://github.com/EdennsAltacc/clit.git
cd clit

Build CLIT with GCC:

gcc src/clit.c -o build/clit -lcurl

To make clit available system-wide on Unix-like systems:

sudo mv build/clit /usr/local/bin/clit

Examples

Fetch

clit fetch -u https://example.com/file.txt -o file.txt

MKCD

clit mkcd my-project

CRUN

clit crun main.c

NFILE

Create a file directly from the terminal:

clit nfile -f HelloWorld.cpp

Enter the file contents line by line and finish with:

!<EOF>

Example:

#include <iostream>

int main() {
    std::cout << "Hello world!\n";
    return 0;
}
!<EOF>

Short Alias

For faster usage, CLIT can be aliased:

alias cl=clit

Then:

cl fetch ...
cl mkcd project
cl crun main.c
cl nfile -f HelloWorld.cpp

Requirements

  • GCC or another C compiler
  • libcurl
  • A supported operating system

License

CLIT is licensed under the MIT License.

See License for more information.