Skip to content
项目

关于

为其他模块和脚本提供工具的模块

开发工具

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

psframework

A module that provides tools for other modules and scripts

Objective

Welcome to the psframework project. The design goal is to create a framework specific to powershell scripting in general. It provides infrastructure for generic scripting tasks, such as:

  • configuration management
  • logging
  • optimizing the user experience
  • improving manageability of PowerShell

Getting Started

Installation

In order to get started with the latest production build, simply run this in an elevated console:

Install-Module PSFramework

This will install the module on your system, ready for use

A quick peek into logging

After installing the PSFramework, simply replace all instances of ...

Write-Verbose "<whatever>"

... with ...

Write-PSFMessage "<Whatever>"

It will still write to verbose, but also ...

  • Write to a log in your appdata folder
  • Automatically rotate old or too large logs

More guidance

All of the upcoming documentation will also be hosted at the official PSFramework website, existing documentation shall be copied to also be available there.

The PSFramework project has a related slack community, where everybody is free to join, ask questions or discuss practices. For a free invite, check our Contact page

The PSFramework comes with lots of internal documentation. All functions ship with help and examples and there are quite a few concept help articles:

Get-Help about_psf*

(Note: Some of them are not quite done yet) Finally, I also like to write in my blog about the PSFramework and all my other projects.

探索相关项目

加载中…