sebnilsson - dotnet-guid 0.5.1

.NET Core Global Tool for creating GUIDs/UUIDs

PM> Install-Package dotnet-guid -Version 0.5.1 -Source https://www.myget.org/F/sebnilsson/api/v3/index.json

Copy to clipboard

> nuget.exe install dotnet-guid -Version 0.5.1 -Source https://www.myget.org/F/sebnilsson/api/v3/index.json

Copy to clipboard

> dotnet add package dotnet-guid --version 0.5.1 --source https://www.myget.org/F/sebnilsson/api/v3/index.json

Copy to clipboard
<PackageReference Include="dotnet-guid" Version="0.5.1" />
Copy to clipboard
source https://www.myget.org/F/sebnilsson/api/v3/index.json

nuget dotnet-guid  ~> 0.5.1
Copy to clipboard

> choco install dotnet-guid --version 0.5.1 --source https://www.myget.org/F/sebnilsson/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "sebnilsson" -SourceLocation "https://www.myget.org/F/sebnilsson/api/v2"
Install-Module -Name "dotnet-guid" -RequiredVersion "0.5.1" -Repository "sebnilsson" 
Copy to clipboard

dotnet-guid

.NET Core Global Tool for creating GUIDs/UUIDs.

The tool creates a single or multiple random GUIDs/UUIDs, which can be formatted in multiple ways.

Installation

Download the .NET Core SDK 2.1 or later. The install the dotnet-guid .NET Global Tool, using the command-line:

dotnet tool install -g dotnet-guid

Usage

Usage: guid [arguments] [options]

Arguments:
  Count         Defines how may GUIDs/UUIDs to generate. Defaults to 1.

Options:
  -?|-h|--help  Show help information
  -n            Formatted as 32 digits:
                00000000000000000000000000000000
  -d            Formatted as 32 digits separated by hyphens:
                00000000-0000-0000-0000-000000000000
  -b            Formatted as 32 digits separated by hyphens, enclosed in braces:
                {00000000-0000-0000-0000-000000000000}
  -p            Formatted as 32 digits separated by hyphens, enclosed in parentheses:
                (00000000-0000-0000-0000-000000000000)
  -x            Formatted as four hexadecimal values enclosed in braces,
                where the fourth value is a subset of eight hexadecimal values that is also enclosed in braces:
                {0x00000000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}
  -e            Defines if the GUIDs/UUIDs should be empty, using zero-values only.
  -u            Defines if the GUIDs/UUIDs generated should be upper-cased letters.

Examples

To get a single GUID/UUID, simply type:

guid

To get 3 random GUIDs/UUIDs, with letters in upper-case, formatted with brackets:

guid 3 -b -u
  • .NETCoreApp 2.1: 2.1.0.0

Owners

sebnilsson

Authors

Sebastian Nilsson

Project URL

https://github.com/sebnilsson/DotnetGuid

License

MIT

Info

21 total downloads
11 downloads for version 0.5.1
Download (83.61 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
0.5.1 83.61 KB Sat, 29 Dec 2018 07:20:36 GMT 11
0.5.0 83.67 KB Sat, 29 Dec 2018 06:56:13 GMT 10