Coder Social home page Coder Social logo

michaeljolley / devtoolbox Goto Github PK

View Code? Open in Web Editor NEW
43.0 5.0 12.0 2.43 MB

A PowerShell module that enables software developers to speed up their CLI workflow.

License: MIT License

PowerShell 100.00%
powershell alias powershell-scripts hacktoberfest

devtoolbox's Introduction

Downloads

What & Why

For more information as to how this repo came about, check out this blog post


Installation

The easiest way to install devtoolbox is via the PowerShell Gallery.

Install-Module -Name devtoolbox

Parameters

All aliases accept parameters of the commands they call.

For example, the below are identical:

g cl https://github.com/michaeljolley/devtoolbox.git

git clone https://github.com/michaeljolley/devtoolbox.git

Commands

Docker

All aliases for Docker begin with d.

Command Executes
d b docker build
d c docker container ps
d cr docker container rm
d cs docker container start
d cx docker container stop
d i docker image ls
d ir docker image rm
d k docker kill
d l docker logs
d li docker login
d lo docker logout
d r docker run
d t docker image tag
d p docker push
d ... docker ...(any parameters)

Docker-Compose

All aliases for Docker Compose begin with dc.

Command Executes
dc b docker-compose build
dc bu docker-compose build (params); docker-compose up
dc d docker-compose down
dc i docker-compose images
dc u docker-compose up
dc ... docker-compose ... (any parameters)

Git

All aliases for Git begin with g.

Command Executes
g a git add
g b git branch
g c git checkout
g cl git clone
g co git commit
g f git fetch
g i git init
g l git log
g ll git log --graph (pretty)
g m git merge
g pl git pull
g ps git push
g r git rebase
g rs git reset
g s git status
g t git tag
g ... git ... (any parameters)

Miscellaneous

Command Executes
github Launches browser to GitHub repo if the directory is tracked by Git and its origin url is at GitHub
hosts If in Windows, opens the hosts file in an elevated editor. Choosing, in order, between VS Code, VS Code (insiders), Notepad.
rwp Restores NPM, Nuget, and Libman packages starting at the root folder of a workspace.
Syntax Prints PowerShell Command Syntax vertically, replicating docs.microsoft.com layout
Sort-Reverse Reverses the order of an array. Accepts pipeline support e.g. `1,2,3,4,5

Contributing

Want to contribute? Check out our Code of Conduct and Contributing docs. Contributions of any kind welcome!

devtoolbox's People

Contributors

allcontributors[bot] avatar brettmillerb avatar cmjchrisjones avatar corbob avatar michaeljolley avatar parithon avatar ramblinggeekuk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

devtoolbox's Issues

Does not load on PowerShell Core

Renamed file to psm1 in an attempt at a start for #12 when trying to import into PowerShell Core, get errors regarding the Get-WmiObject calls as these cmdlets are not available in PowerShell Core. An alternative would be the cim cmdlets, but IIRC that's not cross platform as the cim cmdlets don't exist on -not $IsWindows. A more robust alternative may be to use Get-Process as IIRC it exists across the board.

Pass through "unknown" commands?

Just putting this somewhere to capture the thought...

The Git and Docker functions only handle their known aliases, would be a good idea I think to pass unknown commands on to their respective commands. So for instance if someone wanted they could do g log and it would be translated to git log. This allows the user to continue using git for commands that we may not have aliased.

The contributing guide seems to be outdated

I wanted to add the git diff command but I was not able to the module build working. The contributing guide appears to be outdated since the files it says to run are no longer in the src folder.

Restore-WorkspacePackages NPM uses --no-save

The NPM feature includes the '--no-save' option which prevents creation of the package-lock.json file. However, this is usually the result we want. I suggest we remove the '--no-save' option.

Need to update README.md with installation instructions

We can certainly add a link to the PowerShell Gallery page at https://www.powershellgallery.com/packages/devtoolbox, but beyond that, the user needs to add Import-Module devtoolbox at the top of their profile.ps1.

I'd be interested in if there's a better way to install that would automatically add it to the profile. @brettmillerb or @corbob?

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.