Skip to content

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.

Notifications You must be signed in to change notification settings

Gabin221/LauncherCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:

./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:

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.

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages