https://github.com/avdaredevil/components-for-powershell
Polyfill Like components for PowerShell - Single Line Integrations with any Technology Stack
https://github.com/avdaredevil/components-for-powershell
bower c cli ease environment git golang integration java mongodb nodejs path php polyfill powershell python r ruby utility windows
Last synced: 6 months ago
JSON representation
Polyfill Like components for PowerShell - Single Line Integrations with any Technology Stack
- Host: GitHub
- URL: https://github.com/avdaredevil/components-for-powershell
- Owner: avdaredevil
- License: mit
- Created: 2016-10-16T20:42:57.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2025-02-19T13:32:22.000Z (8 months ago)
- Last Synced: 2025-04-11T02:09:28.107Z (6 months ago)
- Topics: bower, c, cli, ease, environment, git, golang, integration, java, mongodb, nodejs, path, php, polyfill, powershell, python, r, ruby, utility, windows
- Language: PowerShell
- Size: 452 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Components-For-Powershell
> Polyfill Like components for PowerShell - Single Line Integrations with any Technology Stack## Usage
```PowerShell
Configure-Component.ps1 [-Component] [[-Preference] ] [-Silent] [-ThrowErrors] [-InRecurse] [-Remove] [-RawOutput] []
Configure-Component.ps1 [-List] [-PassThru]
Configure-Component.ps1 [-Update]
```
- Will configure any component (Technology Stack, Programming Language, Utility in one line!)
- Use `sal cc Configure-Component`, to make it even easier!
- Then you can configure components like `cc java` or `cc python,ruby @{python=3}`
- *__Note__: If you've never run PowerShell Scripts before refer to __Setup PowerShell Section__ Below*## Features
- Polyfill Inspired Logic for Connecting Components
- Teardown mechanism added
- Auto Path Switching
- Component shared and dynamic args ability
- Alias based component resolution
- Custom Components added## Examples
#### Refer **[Here](docs/examples.md)** for examples
#### Refer **[Here](docs/scr.md)** for screenshots## In Built Components
#### In Script:
Name | Type | Preferences/Arguments | Alias
----------- | ---------- | --------------------- | ------
`Bower` | Tech Stack | `[-NoPrepend]` | `NA`
`Java` | Language | `NA` | `NA`
`Go` | Language | `NA` | `NA`
`Python` | Language | `[-Version=2 ]`| `py`
`Racket` | Language | `NA` | `DrRacket`
`Git` | Language | `NA` | `NA`
`PHP` | Language | `[-Version=5.4 <5.4,5.6>]`| `NA`
`C` | Language | `NA` | `NA`
`R` | Language | `[-Bit=32 <32,64>]` | `NA`
`Ruby` | Language | `[-Version=2 ]`| `rb`
`ssh` | Tech Stack | `NA` | `NA`
`MongoDB` | Tech Stack | `NA` | `Mongo`#### Custom Components:
Name | Type | Description | Preferences
----------------- | ------------------- | ----------- | -----
`Oh-My-Prompt` | PS Enhancement | Loads an Oh-My-Zsh Agnoster like prompt system for powershell, complete with flags, customization and so much more! | `NA`
`SSH-Link-Opener` | PS Enhancement | Scans your current shell buffer for URLs and opens them dynamically when detected | `NA`
`Combinatorics` | PS Enhancement | Adds probability Math Functions | `NA`
`Clock` | Aesthetic Addon | Creates a *New background Thread* that injects your Clock to your shell | `[-Refresh] `
`IP-Address` | Aesthetic Addon | Creates a *New background Thread* that injects your IP address to your shell | `[-Refresh] `
`Mysql` | Language Extension | Connects to mySQL and adds helper functions | `NA`
`node-extensions` | Language Extension | Configure node related extensions like [*Node_Webkit*] | `[-Silent]`## Parameters
Parameter | Definition | Parameter Set
----------------- | ---------- | -------------
`-Component ` | Attach all `c` components to PShell | `Install`
`-Preference` | Pass preference
p[c] || p
to every `c` | `Install`
`-List` | List all Components | `List`
`-PassThru` | Pass the components in a object [*Programmatic API*] | `List`
`-Silent` | Show only failures | `Common`
`-ThrowErrors` | Instead of `Write-AP ` use `throw ` instead | `Common`
`-Remove ` | Remove all components `c` that have a teardown behavior defined | `Common`
`-Debug` | Enable Debugging messages | `Common`
`-RawOutput` | Skip Write-AP and return PlainText instead [*Useful when used within other scripts*] | `Common`## Set Up PowerShell [If you've never run a script in PowerShell]
- Open PowerShell with Admin Access
- Run `Set-ExecutionPolicy Bypass`
- This allows scripts to be run in PowerShell
- cd to the *Folder* where you downloaded/cloned [Configure-Component.ps1](Configure-Component.ps1)
- `./Configure-Component.ps1`*``*---
By: [Apoorv Verma](https://github.com/avdaredevil)