Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pigeon-posse/pigeonsh

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pigeon-posse/pigeonsh

Centralize your server scripts in a single folder and run them using a command

  • 0.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
2
Weekly downloads
 
Created
Source

PIGEONSH by PIGEONPOSSE™

License Version Web About us Donate

:warning: This package is still in beta version. It can be installed and used but things may change in the future.

🗒 Description

Centralize your server scripts in a single folder and run them using the psh or pigeonsh command. Can be used with .sh, .js, and .py files

🔑 Installation

⚡️ Using NPM

npm install -g @pigeon-posse/pigeonsh
  1. Clone the repository and go to the dist folder.
  2. Copy the executable corresponding to your operating system in your bin folder

⚙️ Usage

Write scripts

You can write your scripts in your ${USER}/.scriptsrc folder. The structure for the script to work must be:

- ${USER}/.scriptsrc
	- 📂 [script-name] 
		- 📝 main.[sh, js, py]
		- 📜 info.[yml, yaml, json] # not required
ℹ️ Explanation
  • [script-name]: The name of the folder will be the name that you execute from the psh command. Folder name must not contain spaces.

  • main.[sh, js, py]: The main file is the file that will be executed, here you will write your code. It could be .sh, .js, .py. main.sh example:
    ```bash
    #!/bin/sh
    
    echo "Hello Pigeon 🐦🌈"
    ```
    

  • info.[yml, yaml, json]: Not required. In this file you will add the information of your scripts. info.yml example:
    ```yaml
    description: Print hello message.
    version: 1.0.0
    ```
    

  • Execute scripts

    psh list

    Running this command lists all the scripts saved in your ${user}/.scriptsrc folder. For example in a clean installation, show the default scripts:

    $ psh list
    
    # return the default scripts
    hello
    aliasrc
    hosts 
    
    psh [script-name] or psh exec [script-name]

    Running this command will run the scripts with the same name if they exist. For example, if we want to execute the default script hello:

    $ psh hello
    # or
    $ psh exec hello
    
    # return the hello script
    Hello Pigeon 🐦🌈
    
    psh info [script-name]

    Running this command will display info of script.

    $ psh info hello
    
    # return the script info.
    {
    	"description": "Print hello message",
    	"version": "1.0.0"
    }
    

    👨‍💻 Development

    You can contribute via Github

    Issues Pull requests

    ☕ Donate

    Help us to develop more interesting things.

    Donate

    📜 License

    This sofware is licensed with GPLv3 (GNU GENERAL PUBLIC LICENSE Version 3)

    Read more

    🐦 About us

    PigeonPosse is a ✨ code development collective ✨ focused on creating practical and interesting tools that help developers and users enjoy a more agile and comfortable experience. Our projects cover various programming sectors and we do not have a thematic limitation in terms of projects.

    More

    Collaborators

    NameRoleGitHub
    AngelEspejoAuthor@AngelEspejo
    PigeonPosseCollective@PigeonPosse

    Keywords

    FAQs

    Package last updated on 07 Jan 2023

    Did you know?

    Socket

    Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

    Install

    Related posts

    SocketSocket SOC 2 Logo

    Product

    • Package Alerts
    • Integrations
    • Docs
    • Pricing
    • FAQ
    • Roadmap
    • Changelog

    Packages

    npm

    Stay in touch

    Get open source security insights delivered straight into your inbox.


    • Terms
    • Privacy
    • Security

    Made with ⚡️ by Socket Inc