Coder Social home page Coder Social logo

avdaredevil / components-for-powershell Goto Github PK

View Code? Open in Web Editor NEW
6.0 4.0 2.0 416 KB

Polyfill Like components for PowerShell - Single Line Integrations with any Technology Stack

License: MIT License

PowerShell 100.00%
powershell polyfill utility cli integration ease environment path python ruby java nodejs bower php git golang r mongodb c windows

components-for-powershell's Introduction

Components-For-Powershell

Polyfill Like components for PowerShell - Single Line Integrations with any Technology Stack

Usage

Configure-Component.ps1 [-Component] <Object> [[-Preference] <Object>] [-Silent] [-ThrowErrors] [-InRecurse] [-Remove] [-RawOutput] [<CommonParameters>]
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 for examples

Refer Here 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 <string>] 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 <string>] 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] <int>
IP-Address Aesthetic Addon Creates a New background Thread that injects your IP address to your shell [-Refresh] <int>
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 <c [Array/String]> Attach all c components to PShell Install
-Preference <p [Value/Object]> 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 <err_msg> use throw <exception> instead Common
-Remove <c> 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<arguments>

By: Apoorv Verma

components-for-powershell's People

Contributors

avdaredevil avatar tvdaredevil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

01 tvdaredevil

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.