Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

Extension Coding Guide (ECG)

Mithun edited this page Jun 16, 2023 · 3 revisions

Hello! Welcome to ECG (Extension Coding Guide!) *

This is where I tell you how to code an extension!

First Step

Install Microsoft VSCode or Notepad++ or if you don't want to install, use Windows Notepad. (All Programs are Free)

I'm Using Microsoft VSCode

Second Step

Give the file a name and a file extension. The File extension is ".json" (example: test.json / extention.json)

Code the File

First open your program

After Opening your program, code the file! Sample Code and Explanation

{ "$E" : "True", "setDefaultUser" : "1" }

ScreenShot

Sample Code

Explanation

The "$E" : "True", tells us TerminalPy that it's an extension that can be used. Note: If you do not put the "$E" : True, it won't work!

The "setDefaultUser" : "1" means that the default user is the other user you have created. Note: If you have not created it won't work for you.

The Comma after "$E" : "True" is how the file is coded. Tip: Before you complete check if the commas are there! If you're putting another command put a comma after "setDefaultUser" : "1"

Fourth Step

Run The File

In TerminalPy type this command "extension.manager.add" to make it work!

Type the file name in it to work!

Example:

EXP_OF_RTF

FAQ:

How to make the extension public?:

Answer:

I'm Still working on it. It may come soon!

How to disable/uninstall an extension?:

Answer

Delete the file or Move the file somewhere!

Files:

The test file we used:

https://github.com/Mithunhubminepro/TerminalPy/blob/main/data.json

*This applies to TerminalPy V1.2.1 and above.