https://github.com/tssaltan/psframe
PowerShell scripting framework
https://github.com/tssaltan/psframe
powershell
Last synced: 6 months ago
JSON representation
PowerShell scripting framework
- Host: GitHub
- URL: https://github.com/tssaltan/psframe
- Owner: TsSaltan
- Created: 2020-07-21T11:23:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-06T17:53:46.000Z (about 2 years ago)
- Last Synced: 2025-07-09T04:09:44.795Z (7 months ago)
- Topics: powershell
- Language: PowerShell
- Homepage:
- Size: 88.9 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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
```