Coder Social home page Coder Social logo

nexssp / language_powershell Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 51 KB

Powershell for Nexss PROGRAMMER 2.0

License: MIT License

JavaScript 46.08% PowerShell 53.92%
nexss-programmer powershell innovation evolutionary multilanguage multilanguages

language_powershell's Introduction

PowerShell implementation for Nexss PROGRAMMER 2.0

To Install Nexss Programmer please go to Nexss Programmer CLI for more information.

Nexss Programmer Examples

nexss file add myprogram.ps1
nexss myprogram.ps1 # execute script
nexss myprogram.js # execute NodeJS
nexss myprogram.py # execute Python.. etcetc..

Use multiple versions of Powershell

To use multiple powershell versions you can add at the top of the file # nexss-compiler tag eg.

To use Powershell 5

# nexss-compiler:Powershell
Write-Host "My current Powershell version: "$PSVersionTable.PSVersion.Major

Other versions of Powershell 6, 7

It depends what you have installed on your machine it will use it. Remove # nexss-compiler:Powershell as pwsh.exe is default compiler.

Installation of latest Version of PowerShell

https://github.com/PowerShell/PowerShell/blob/master/tools/install-powershell.ps1

iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI -Preview"

Useful links

& Operator
Table of Basic PowerShell Commands

Powershell Examples

(Get-Location).path #current working directory (location of command run)
($pwd).path
echo $MyInvocation.MyCommand.Path # script file path
echo $PSScriptRoot # script root

$filebase = Join-Path $PSScriptRoot $testFilename
$PSScriptRoot #

Combine to Objects

$dockerResult.psobject.Properties | ForEach-Object {
    $NexssStdout | Add-Member -MemberType $_.MemberType -Name $_.Name -Value $_.Value -Force
}

language_powershell's People

Contributors

mapoart avatar nexssp avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.