SatvikR / piston-cli

Universal shell supporting code highlighting, files, and interpretation without the need to download a language.

Home Page:https://pypi.org/project/piston-cli/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Piston CLI

A cli tool which uses the piston api, developed by Engineerman and his team to compile over 35 languages instantly. Accepts files, paste.pythondiscord.com links and input.

Installation

With pip

# Installing the package
pip install piston-cli -U
# Help Command
piston -h

With Nix/NixOS

Add this to your configuration.nix

  environment.systemPackages = with pkgs; [
     piston-cli
  ];

Or if you're using home-manager

  home.packages = with pkgs; [
     piston-cli
  ];

And finally using nix-env or nix profile

# using nix-env
nix-env -i piston-cli
# using nix profile (in nixUnstable)
nix profile install nixpkgs#piston-cli

For Arch/ArchBased

With yay
yay piston-cli
With paru
paru piston-cli

Or any AUR helper you use with doesn't matter. You get the point.

Example usage

Default

example usage

Shell

example shell usage

File

example file usage

Link

example link usage

Languages

piston --list

How to run it? (Contributing)

# This will install the development and project dependencies.
poetry install

# This will install the pre-commit hooks.
poetry run task precommit

# Optionally: run pre-commit hooks to initialize them.
# You can start working on the feature after this.
poetry run task pre-commit run --all-files

# Run it
poetry run task start --help

Contributing

You can comment on the issues you would like to work on.

About

Universal shell supporting code highlighting, files, and interpretation without the need to download a language.

https://pypi.org/project/piston-cli/

License:MIT License


Languages

Language:Python 95.3%Language:Shell 4.7%