Skip to content

Commit 9d5c3e7

Browse files
authored
Merge pull request #161 from PetriAsi/update/readme
Update/readme for release 1.6
2 parents 7d6aa54 + bb00f1b commit 9d5c3e7

21 files changed

+1924
-32
lines changed

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,32 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/),
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
# [v.1.6.x]
9+
10+
## Remove more things ja set some more
11+
12+
### New features
13+
Added some set and remove functions. Pipelineinput supported
14+
for all remove functions.
15+
16+
### New functions
17+
- Remove-SnipeitAccessory
18+
- Remove-SnipeitCategory
19+
- Remove-SnipeitCompany
20+
- Remove-SnipeitComponent
21+
- Remove-SnipeitCustomField
22+
- Remove-SnipeitDepartment
23+
- Remove-SnipeitLicense
24+
- Remove-SnipeitLocation
25+
- Remove-SnipeitManufacturer
26+
- Remove-SnipeitModel
27+
- Set-SnipeitCategory
28+
- Set-SnipeitCompany
29+
- Set-SnipeitCustomField
30+
- Set-SnipeitDepartment
31+
- Set-SnipeitStatus
32+
33+
834
# [v1.5.x] - 2021-06-08
935

1036
## Piping input

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Set-SnipeitInfo -URL 'https://asset.example.com' -apiKey 'tokenKey'
2828

2929
```powershell
3030
# Review the help at any time!
31+
Get-Help about_SnipeitPS
3132
Get-Command -Module SnipeitPS
3233
Get-Help Get-SnipeitAsset -Full # or any other command
3334
```

SnipeitPS/SnipeitPS.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RootModule = 'SnipeitPS'
1313

1414
# Version number of this module.
15-
ModuleVersion = '1.5'
15+
ModuleVersion = '1.6'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ environment:
1414
PSGalleryAPIKey:
1515
secure: UdM6qhf5B0G8liHhUrwWERCZr44iSqmg4jUq0lwlTjZs4KyeoiwnBzdej0phqIAm
1616

17-
version: 1.5.{build}
17+
version: 1.6.{build}
1818

1919
# Don't rebuild when I tag a release on GitHub
2020
skip_tags: true

docs/New-SnipeitAccessory.md

Lines changed: 269 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,269 @@
1+
---
2+
external help file: SnipeitPS-help.xml
3+
Module Name: SnipeitPS
4+
online version:
5+
schema: 2.0.0
6+
---
7+
8+
# New-SnipeitAccessory
9+
10+
## SYNOPSIS
11+
Creates new accessory on Snipe-It system
12+
13+
## SYNTAX
14+
15+
```
16+
New-SnipeitAccessory [-name] <String> [-qty] <Int32> [-category_id] <Int32> [[-company_id] <Int32>]
17+
[[-manufacturer_id] <Int32>] [[-order_number] <String>] [[-purchase_cost] <Single>]
18+
[[-purchase_date] <DateTime>] [[-min_qty] <Int32>] [[-supplier_id] <Int32>] [[-location_id] <Int32>]
19+
[-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
20+
```
21+
22+
## DESCRIPTION
23+
Creates new accessory on Snipe-It system
24+
25+
## EXAMPLES
26+
27+
### EXAMPLE 1
28+
```
29+
New-SnipeitAccessory -name "Accessory" -qty 3 -category_id 1
30+
```
31+
32+
## PARAMETERS
33+
34+
### -apiKey
35+
Users API Key for Snipeit, can be set using Set-SnipeitInfo command
36+
37+
```yaml
38+
Type: String
39+
Parameter Sets: (All)
40+
Aliases:
41+
42+
Required: True
43+
Position: 13
44+
Default value: None
45+
Accept pipeline input: False
46+
Accept wildcard characters: False
47+
```
48+
49+
### -category_id
50+
ID number of the category the accessory belongs to
51+
52+
```yaml
53+
Type: Int32
54+
Parameter Sets: (All)
55+
Aliases:
56+
57+
Required: True
58+
Position: 3
59+
Default value: 0
60+
Accept pipeline input: False
61+
Accept wildcard characters: False
62+
```
63+
64+
### -company_id
65+
ID Number of the company the accessory is assigned to
66+
67+
```yaml
68+
Type: Int32
69+
Parameter Sets: (All)
70+
Aliases:
71+
72+
Required: False
73+
Position: 4
74+
Default value: 0
75+
Accept pipeline input: False
76+
Accept wildcard characters: False
77+
```
78+
79+
### -location_id
80+
ID number of the location the accessory is assigned to
81+
82+
```yaml
83+
Type: Int32
84+
Parameter Sets: (All)
85+
Aliases:
86+
87+
Required: False
88+
Position: 11
89+
Default value: 0
90+
Accept pipeline input: False
91+
Accept wildcard characters: False
92+
```
93+
94+
### -manufacturer_id
95+
ID number of the manufacturer for this accessory.
96+
97+
```yaml
98+
Type: Int32
99+
Parameter Sets: (All)
100+
Aliases:
101+
102+
Required: False
103+
Position: 5
104+
Default value: 0
105+
Accept pipeline input: False
106+
Accept wildcard characters: False
107+
```
108+
109+
### -min_qty
110+
Min quantity of the accessory before alert is triggered
111+
112+
```yaml
113+
Type: Int32
114+
Parameter Sets: (All)
115+
Aliases:
116+
117+
Required: False
118+
Position: 9
119+
Default value: 0
120+
Accept pipeline input: False
121+
Accept wildcard characters: False
122+
```
123+
124+
### -name
125+
Accessory name
126+
127+
```yaml
128+
Type: String
129+
Parameter Sets: (All)
130+
Aliases:
131+
132+
Required: True
133+
Position: 1
134+
Default value: None
135+
Accept pipeline input: False
136+
Accept wildcard characters: False
137+
```
138+
139+
### -order_number
140+
Order number for this accessory.
141+
142+
```yaml
143+
Type: String
144+
Parameter Sets: (All)
145+
Aliases:
146+
147+
Required: False
148+
Position: 6
149+
Default value: None
150+
Accept pipeline input: False
151+
Accept wildcard characters: False
152+
```
153+
154+
### -purchase_cost
155+
Cost of item being purchased.
156+
157+
```yaml
158+
Type: Single
159+
Parameter Sets: (All)
160+
Aliases:
161+
162+
Required: False
163+
Position: 7
164+
Default value: 0
165+
Accept pipeline input: False
166+
Accept wildcard characters: False
167+
```
168+
169+
### -purchase_date
170+
Date accessory was purchased
171+
172+
```yaml
173+
Type: DateTime
174+
Parameter Sets: (All)
175+
Aliases:
176+
177+
Required: False
178+
Position: 8
179+
Default value: None
180+
Accept pipeline input: False
181+
Accept wildcard characters: False
182+
```
183+
184+
### -qty
185+
Quantity of the accessory you have
186+
187+
```yaml
188+
Type: Int32
189+
Parameter Sets: (All)
190+
Aliases:
191+
192+
Required: True
193+
Position: 2
194+
Default value: 0
195+
Accept pipeline input: False
196+
Accept wildcard characters: False
197+
```
198+
199+
### -supplier_id
200+
ID number of the supplier for this accessory
201+
202+
```yaml
203+
Type: Int32
204+
Parameter Sets: (All)
205+
Aliases:
206+
207+
Required: False
208+
Position: 10
209+
Default value: 0
210+
Accept pipeline input: False
211+
Accept wildcard characters: False
212+
```
213+
214+
### -url
215+
URL of Snipeit system, can be set using Set-SnipeitInfo command
216+
217+
```yaml
218+
Type: String
219+
Parameter Sets: (All)
220+
Aliases:
221+
222+
Required: True
223+
Position: 12
224+
Default value: None
225+
Accept pipeline input: False
226+
Accept wildcard characters: False
227+
```
228+
229+
### -Confirm
230+
Prompts you for confirmation before running the cmdlet.
231+
232+
```yaml
233+
Type: SwitchParameter
234+
Parameter Sets: (All)
235+
Aliases: cf
236+
237+
Required: False
238+
Position: Named
239+
Default value: None
240+
Accept pipeline input: False
241+
Accept wildcard characters: False
242+
```
243+
244+
### -WhatIf
245+
Shows what would happen if the cmdlet runs.
246+
The cmdlet is not run.
247+
248+
```yaml
249+
Type: SwitchParameter
250+
Parameter Sets: (All)
251+
Aliases: wi
252+
253+
Required: False
254+
Position: Named
255+
Default value: None
256+
Accept pipeline input: False
257+
Accept wildcard characters: False
258+
```
259+
260+
### CommonParameters
261+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
262+
263+
## INPUTS
264+
265+
## OUTPUTS
266+
267+
## NOTES
268+
269+
## RELATED LINKS

0 commit comments

Comments
 (0)