Skip to content

Commit a524d89

Browse files
committed
Finished documentation
1 parent e167a11 commit a524d89

File tree

3 files changed

+58
-8
lines changed

3 files changed

+58
-8
lines changed

FreeChuckNorrisJokes.psd1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#
22
# Module manifest for module 'FreeChuckNorrisJokes'
33
#
4-
# Generated by: ITNinja
4+
# Generated by: ITNinja01
55
#
6-
# Generated on: 4/30/2025
6+
# Generated on: 5/5/2025
77
#
88

99
@{
@@ -12,16 +12,16 @@
1212
RootModule = 'FreeChuckNorrisJokes.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '0.0.1'
15+
ModuleVersion = '1.0.0'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()
1919

2020
# ID used to uniquely identify this module
21-
GUID = '26758e38-199f-44fe-a74c-d76deb40f755'
21+
GUID = 'bd906a89-16e9-4b5a-977e-93ca73bebda8'
2222

2323
# Author of this module
24-
Author = 'ITNinja'
24+
Author = 'ITNinja01'
2525

2626
# Company or vendor of this module
2727
CompanyName = 'ITNinja01'
@@ -95,7 +95,7 @@ PrivateData = @{
9595
PSData = @{
9696

9797
# Tags applied to this module. These help with module discovery in online galleries.
98-
# Tags = @()
98+
Tags = 'humor', 'jokes', 'funny', 'comedy', 'action hero'
9999

100100
# A URL to the license for this module.
101101
LicenseUri = 'https://github.com/ITNinja01/PowerShell/blob/main/LICENSE'

FreeChuckNorrisJokes.psm1

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
<#
2+
.SYNOPSIS
3+
A PowerShell module to fetch random Chuck Norris jokes from the Chuck Norris API.
4+
.DESCRIPTION
5+
This module provides two functions to fetch Chuck Norris jokes. The first function retrieves a random joke, while the second function allows the user to specify a category for the joke. The categories are validated against a predefined list of valid categories.
6+
.EXAMPLE
7+
get-chucknorrisjoke
8+
This command fetches a random Chuck Norris joke from the API and displays it in the console.
9+
get-chucknorrisjokebycategory
10+
This command prompts the user to enter a category and fetches a random Chuck Norris joke from that category. If the user enters an invalid category, it will prompt them again until a valid category is provided.
11+
.LINK
12+
https://api.chucknorris.io/
13+
.OUTPUTS
14+
Funny Chuck Norris jokes in the console.
15+
.NOTES
16+
author: ITNinja01
17+
gitHub: https://github.com/ITNin
18+
First module never published on PSGallery
19+
Date: 05-04-2025
20+
version: 1.0.0
21+
#>
22+
123
function Get-ChuckNorrisJoke {
224
$Joke = invoke-restMethod -Uri 'https://api.chucknorris.io/jokes/random' | select value -ExpandProperty value
325
write-host "Chuck Norris Joke: $Joke"

README.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,30 @@
1-
# FreeChuckNorrisJoke
2-
My module for bringing Chuck Norris jokes to the shell.
1+
# FreeChuckNorrisJokes
2+
I created a module for bringing Chuck Norris jokes to the shell.
3+
4+
By installing this PowerShell, you can have a wonderful Chuck Norris jokes in the shell using the chucknorris.io API.
5+
6+
## Prerequisites
7+
* Think Chuck Norris is the strongest and greatest man that has ever lived!
8+
* Powershell access on your computer
9+
* Basic Knowledge of PowerShell and can install modules on your device
10+
11+
## Installation
12+
1. Using the PowerShell Gallery
13+
a. Open the shell as an administrator and type in the follow command "Install-Module -Name FreeChuckNorrisJokes -Scope CurrentUser
14+
2. Manual Installation
15+
a. Clone the repository using Git or download the .Zip file
16+
b. Expand the archived .Zip file
17+
c. Open PowerShell as an administrator and navigate to the directory where the module you expanded is located.
18+
d. Run the following command "Import-Module -Name .\FreeChuckNorrisJokes.psm1"
19+
20+
## Examples
21+
get-chucknorrisjoke
22+
This command fetches a random Chuck Norris joke from the API and displays it in the console.
23+
get-chucknorrisjokebycategory
24+
This command prompts the user to enter a category and fetches a random Chuck Norris joke from that category. If the user enters an invalid category, it will prompt them again until a valid category is provided.
25+
26+
## License
27+
GPL-3.0 license
28+
29+
###
30+
Contributors are welcomed.

0 commit comments

Comments
 (0)