From 1140a94d4ba3052de38070939c356e550f61e901 Mon Sep 17 00:00:00 2001 From: amkhrjee Date: Fri, 30 Dec 2022 01:16:42 +0530 Subject: [PATCH] fix: PSScriptFileInfo --- ocwd.ps1 | 52 +++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 39 insertions(+), 13 deletions(-) diff --git a/ocwd.ps1 b/ocwd.ps1 index 6cef0f7..aa6f9f7 100644 --- a/ocwd.ps1 +++ b/ocwd.ps1 @@ -1,16 +1,15 @@ -<# -.SYNOPSIS - Downloads resources from the MIT OCW for any given course to any given path. -.DESCRIPTION - This applet scrapes the MIT OCW website for courses and provides an easy way to download all resources for a given course. -.PARAMETER link - The URL of a MIT OCW course homepage. -.EXAMPLE - ocwd https://ocw.mit.edu/courses/6-006-introduction-to-algorithms-spring-2020/ -.NOTES - Creation Date: Dec 30, 2022 - Version: 1.0.0 +<#PSScriptInfo + +.VERSION 1.0 + +.GUID a31639e2-a8ab-4a29-9fed-66d5b5f9e1e9 + +.AUTHOR aniru + +.COMPANYNAME + +.COPYRIGHT Copyright (C) 2022 Aniruddha Mukherjee This program is free software: you can redistribute it and/or modify @@ -25,7 +24,34 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . + +.TAGS + +.LICENSEURI + +.PROJECTURI + +.ICONURI + +.EXTERNALMODULEDEPENDENCIES + +.REQUIREDSCRIPTS + +.EXTERNALSCRIPTDEPENDENCIES + +.RELEASENOTES + + +.PRIVATEDATA + #> + +<# + +.DESCRIPTION + Downloads MIT OCW course resources + +#> Param( [Parameter(HelpMessage = "The URL to a course homepage")] $link @@ -307,4 +333,4 @@ if ($link -match 'https://ocw\.mit\.edu/courses') { else { Write-Host "Error: Invalid link" -ForegroundColor Red Write-Host "Please enter a link that starts with `"https://ocw.mit.edu/courses/"`" -ForegroundColor DarkRed -} +} \ No newline at end of file