Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gabin221/launchercode

LauncherCode is a script designed to streamline the process of creating basic files for various programming languages based on their extensions. By providing one or more filenames as arguments, users can created few files of programmation.
https://github.com/gabin221/launchercode

assembly c coffeescript convenience cpp csharp dart fortran fsharp generate-file helloworld-programs html java latex php programming-languages python script shell-script terminal

Last synced: 3 days ago
JSON representation

LauncherCode is a script designed to streamline the process of creating basic files for various programming languages based on their extensions. By providing one or more filenames as arguments, users can created few files of programmation.

Awesome Lists containing this project

README

        

# LauncherCode

This script one or more filenames as arguments and generates a file based on its extension. Depending on the extension provided, different types of files will be generated:

- For **.alg** extension, an ALGOL file will be created with a basic "Hello World!" program.
- For **.asm** extension, an Assembly file will be created with a basic "Hello World!" program.
- For **.c** extension, a C file will be created with a basic "Hello, World!" program.
- For **.cbl** and **.cob** extensions, a COBOL file will be created with a basic "Hello World!" program.
- For **.cc** and **.cpp** extensions, a C++ file will be created with a basic "Hello World!" program.
- For **.cl** extension, a Common Lisp file will be created with a basic "Hello World!" program.
- For **.coffee** extension, a CoffeeScript file will be created with a basic "Hello World!" program.
- For **.cs** extension, a C# file will be created with a basic "Hello, World!" program.
- For **.dart** extension, a Dart file will be created with a basic "Hello World!" program.
- For **.dpr** extension, a Delphi file will be created with a basic "Hello World!" program.
- For **.f** and **.f90** extensions, a Fortran file will be created with a basic "Hello World!" program.
- For **.fasl** extension, a Common Lisp file will be created with a basic "Hello World!" program.
- For **.for** extension, a Fortran file will be created with a basic "Hello World!" program.
- For **.fs**, **.fsi**, **.fsscript**, and **.fsx** extensions, a F# file will be created with a basic "Hello World!" program.
- For **.go** extension, a Go file will be created with a basic "Hello World!" program.
- For **.hs** and **.lhs** extensions, a Haskell file will be created with a basic "Hello World!" program.
- For **.html** extension, an HTML file with a basic structure will be created.
- For **.jl** extension, a Julia file will be created with a basic "Hello World!" program.
- For **.java** extension, a Java file will be created with a basic "Hello, World!" program.
- For **.js** extension, a JavaScript file will be created with a basic "Hello World!" program.
- For **.kt** extension, a Kotlin file will be created with a basic "Hello, World!" program.
- For **.l**, **.lisp**, and **.lsp** extensions, a Lisp file will be created with a basic "Hello World!" program.
- For **.m** extension, a MATLAB file will be created with a basic "Hello World!" program.
- For **.pas** extension, a Pascal file will be created with a basic "Hello World!" program.
- For **.php** extension, an HTML file with a basic structure will be created.
- For **.pl** extension, a Perl file will be created with a basic "Hello World!" program.
- For **.py** extension, a Python script will be created with a basic "Hello World!" function.
- For **.r** extension, an R file will be created with a basic "Hello World!" program.
- For **.rb** extension, a Ruby file will be created with a basic "Hello World!" program.
- For **.sc** and **.scala** extensions, a Scala file will be created with a basic "Hello World!" program.
- For **.sh** extension, a Shell file will be created with a basic "Hello, World!" program.
- For **.swift** extension, a Swift file will be created with a basic "Hello World!" program.
- For **.tcl** extension, a Tcl file will be created with a basic "Hello World!" program.
- For **.tex** extension, a LaTeX file will be created with a basic document structure.
- For **.ts** extension, a TypeScript file will be created with a basic "Hello World!" program.

To use this script, run it with the desired filename as an argument, like so:

```shell
./launchercode.sh filename.extension
```

This will generate the corresponding file based on the provided extension.

Note: Ensure the script is executable. If not, make it executable using the following command:

```shell
chmod +x launchercode.sh
```

Additionally, to use this script from anywhere, you can create a bin directory in your home directory (~) and move the script there. After that, reload your session. This way, the script will be executable from any location within your user environment.