An open API service indexing awesome lists of open source software.

https://github.com/tssaltan/psframe

PowerShell scripting framework
https://github.com/tssaltan/psframe

powershell

Last synced: 6 months ago
JSON representation

PowerShell scripting framework

Awesome Lists containing this project

README

          

# PowerShell Framework
Version: **2.0-dev**

## Structure and building
Your project may be located at another directory

- Put your project's code at **/src/** directory.
- Put your resources to **/res/** directory.
- For building execute `build` command
- After building your project will be compilled to **/build/** directory.
- Command `build -launch` launch project after building

## Features
### Syntax sugar
#### Adapting static methods
```PowerShell
Class::Method('arg1')
# Will be replaced to
[Class]::Method('arg1')
```

#### Object constructor
```PowerShell
$object = new ObjectClassName
# Will be replaced to
$object = New-Object ObjectClassName
```

### Forms structure at XML
Form structure (xml/html) format:
```html

Hello world!
ButtonASD

```

PS code:
```PowerShell
$builder = new UIBuilder;
$builder.loadFile("./res/file.xml");
$builder.build();

$form = ui("testForm")
$form.show();
# form will be showned
```