GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - IntelliTect/EssentialCSharp.ListingManager: Tool used to expose useful functionality to IntelliTect/EssentialCSharp collaborators

BranchesTags
Open more actions menu

Latest commit

 

History

287 Commits
287 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.vscode
.vscode
 
 
ListingManager.Tests
ListingManager.Tests
 
 
ListingManager
ListingManager
 
 
.gitignore
.gitignore
 
 
Directory.Build.props
Directory.Build.props
 
 
Directory.Packages.props
Directory.Packages.props
 
 
EssentialCSharp.ListingManager.slnx
EssentialCSharp.ListingManager.slnx
 
 
LICENSE
LICENSE
 
 
NuGet.config
NuGet.config
 
 
README.md
README.md
 
 
global.json
global.json
 
 

Repository files navigation

EssentialCSharp.ListingManager NuGet

Tool used to expose useful functionality to IntelliTect/EssentialCSharp collaborators

Installation

Run dotnet tool install IntelliTect.EssentialCSharp.ListingManager -g. This will install the Nupkg as a dotnet global tool.

Update

Run dotnet tool update -g IntelliTect.EssentialCSharp.ListingManager. This will update the Nupkg for use globally.

Usage

Run ListingManager from the command line.

For available commands run ListingManager -h. This will display all the commands available to you.

Update Command

The update command updates namespaces and filenames for all listings and accompanying tests within a chapter.

Basic Usage

ListingManager update <directoryIn>

Optional Parameters

  • --verbose -> Displays more detailed messages in the log
  • --preview -> Displays the changes that will be made without actually making them
  • --by-folder -> Updates namespaces and filenames for all listings and accompanying tests within a folder
  • --single-dir -> All listings are in a single directory and not separated into chapter and chapter test directories
  • --all-chapters -> The passed in path is the parent directory to many chapter directories rather than a single chapter directory
  • --git -> Use git mv for moving files instead of OS file operations. Requires the directory to be in a git repository. This preserves git history for renamed files.

Examples

# Update listings in a chapter with preview
ListingManager update "user/EssentialCSharp/src/Chapter03/" --preview --verbose

# Update listings using git mv (preserves git history)
ListingManager update "user/EssentialCSharp/src/Chapter03/" --git --preview --verbose

# Update all chapters
ListingManager update "user/EssentialCSharp/src/" --all-chapters --preview --verbose

NOTE: It is highly recommended that you commit and push your changes before running this command. Additionally you should run this command with --preview and --verbose specified to ensure there are no adverse effects. Once you are confident that the proposed changes are what you want, you can run the command without the --preview modifier.

Scan Commands

Scan for Mismatched Listings

To find potentially mismatched listings in a chapter run:

ListingManager scan listings <directoryIn>

Scan for Missing Tests

To find missing tests:

ListingManager scan tests <directoryIn>

Running All Chapters in PowerShell

From the ListingManager directory:

Get-ChildItem -Path 'insert.srcPathNameHere' -Directory | Where-Object {
!$_.name.EndsWith("Tests")
} | ForEach-Object {
listingmanager update $_.FullName --preview --verbose
} 

Pushing new versions

The easiest and best way is to create a new release with a tag number and version number that are identical in the format of vx.x.x and a nuget release will be created and uploaded with that same number.

If you want the more difficult method: To push a new version from the command line you must first pack the changes as a nupkg by running dotnet pack at the solution level. If the pack is successfully navigate to the directory where the nupkg was created. Run dotnet nuget push IntelliTect.EssentialCSharp.<version>.nupkg -k <ApiKey> -s https://api.nuget.org/v3/index.json. For more detailed instructions and to get an API key visit. https://docs.microsoft.com/en-us/nuget/nuget-org/publish-a-package and scroll down to the "Create API Keys" section. Replace <version> with the proper version number. In other words, provide the full name of the newly generated nupkg. NOTE: The version must be higher than the version present on nuget. To change this modify the <version> tag in ListingManager/ListingManager.csproj

About

Tool used to expose useful functionality to IntelliTect/EssentialCSharp collaborators

www.nuget.org/packages/IntelliTect.EssentialCSharp.ListingManager/

Topics

hacktoberfest

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

0 stars

Watchers

3 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.