Skip to content

CodePort is a CLI tool for sharing and downloading code snippets. It allows users to upload code files to a server and retrieve them using a unique ID.

Notifications You must be signed in to change notification settings

xspoilt-dev/codeport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

CodePort

CodePort is a CLI tool for sharing and downloading code snippets. It allows users to upload code files to a server and retrieve them using a unique ID.

Features

  • Upload code files to a server with syntax highlighting.
  • Download code files using a unique ID.
  • Password protection for uploads.
  • Customizable titles and descriptions for code snippets.

Installation

To install CodePort, clone the repository and build the CLI tool:

git clone https://github.com/xspoilt-dev/codeport.git
cd codeport
chmod +x install.sh
./install.sh

Usage

Uploading Code

To upload a code file to the server, use the following command:

codeport -f <file_path> -l <language> -t <title> -d <description> -p <password>
  • -f: Path to the file to upload (required)
  • -l: Programming language for syntax highlighting (default: python)
  • -t: Title for the paste (optional)
  • -d: Description of the paste (optional)
  • -p: Password to protect the paste (optional)

Example:

codeport -f example.py -l python -t "Example Code" -d "This is an example code snippet." -p "mypassword"

Downloading Code

To download a code file from the server, use the following command:

codeport -g <paste_id> -o <output_file>
  • -g: Paste ID to download the file (required)
  • -o: Path to save the downloaded file (default: output.txt)

Example:

codeport -g abc123 -o downloaded_code.py

Contributors

  • Minhajul Islam
  • Farhan Ali

License

This project is licensed under the MIT License.

Contact

For more information, visit https://pasteit.ftoolz.xyz.


About

CodePort is a CLI tool for sharing and downloading code snippets. It allows users to upload code files to a server and retrieve them using a unique ID.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published