Skip to content

GoliasVictor/pim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command-Line Help for pim

This document contains the help content for the pim command-line program.

Command Overview:

pim

Project Manager

Usage: pim [OPTIONS] <COMMAND>

Subcommands:
  • find — Find environments who match the filters
  • open — Open a environmnet (run the open script or open vscode in the environment directory)
  • dir — Show the directory of project
  • list — List projects
  • run — Run a script
  • new — Create a new environment
  • info — Get information about an environment
  • completions
Options:
  • -r, --root <ROOT> — The root folder with all environments to map and run commands

pim find

Find environments who match the filters

Usage: pim find [OPTIONS]

Options:
  • -n, --name <NAME> — Part of the environment name

  • -l, --language <LANGUAGE> — Environment language

  • -c, --categories <CATEGORIES> — Environment category

  • -t, --type <TYPE> — Environment type

    Possible values:

    • folder: Folder: an environment that groups other environments
    • project: Project: an environment that runs and has source code and can be used alone
    • sub-project: Subproject: a part within a project, a module, a layer, a library, etc. an internal separation within a project
  • -m, --max-depth <MAX_DEPTH> — Maximum depth to find

pim open

Open a environmnet (run the open script or open vscode in the environment directory)

Usage: pim open <ENVIRONMENT>

Arguments:
  • <ENVIRONMENT> — Environmnet to open

pim dir

Show the directory of project

Usage: pim dir <ENVIRONMENT>

Arguments:
  • <ENVIRONMENT> — Name of the environment from which the directory will be geted

pim list

List projects

Usage: pim list [OPTIONS] [FOLDER]

Arguments:
  • <FOLDER> — The folder to child environments
Options:
  • -s, --style <STYLE> — The style of output

    Default value: tree

    Possible values:

    • flat: Print environment name line by line
    • tree: Print environment in tree
    • by-language: Print environment of each language
    • by-category: Print environment of each category
  • -t, --type <TYPE> — Maximum environment type, subproject: print subproject, project and subproject, project: print subproject and project. folder: prints only folders

    Possible values:

    • folder: Folder: an environment that groups other environments
    • project: Project: an environment that runs and has source code and can be used alone
    • sub-project: Subproject: a part within a project, a module, a layer, a library, etc. an internal separation within a project
  • -m, --max-depth <MAX_DEPTH> — Maximum folder depth to show

pim run

Run a script

Usage: pim run [OPTIONS] [SCRIPT] [-- <PARAMETERS>...]

Arguments:
  • <SCRIPT> — Name of script
  • <PARAMETERS> — Parameters added to the end of the script
Options:
  • -s, --show-list — show list of scripts
  • -e, --environmnet <ENVIRONMNET> — Environmnet where is the script

pim new

Create a new environment

Usage: pim new [OPTIONS] [TEMPLATE]

Arguments:
  • <TEMPLATE> — template of environment
Options:
  • -p, --path <PATH> — Path to environment

pim info

Get information about an environment

Usage: pim info [OPTIONS] <COMMAND>

Subcommands:
  • is-env — Check if the path is within an environment
  • property — get a property from the environment
Options:
  • -e, --environment <ENVIRONMENT> — Environment where the information will be obtained (if this and path are not specified, use the environment close to the root from the current folder)
  • -p, --path <PATH> — Path to the environment (if --environment is specified ignore, this will be ignored)

pim info is-env

Check if the path is within an environment

Usage: pim info is-env

pim info property

get a property from the environment

Usage: pim info property <PROPERTY>

Arguments:
  • <PROPERTY> — The property to get of the environment

    Possible values: environment-type, languages, path, description, script-interpreter, name, directory

pim completions

Usage: pim completions <SHELL>

Arguments:
  • <SHELL> — The shell to generate the completions for

    Possible values: bash, elvish, fig, fish, nushell, powershell, zsh


This document was generated automatically by clap-markdown.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages