Skip to content

Commit

Permalink
improving documenation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mxrcon committed Jul 10, 2022
1 parent 9005763 commit ad2c50c
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 66 deletions.
2 changes: 1 addition & 1 deletion BioNameGenerator/Public/Get-RandomPhrase.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Function Get-RandomPhrase {
<#
.SYNOPSIS
This functions handles the request for random Keyword using the function "Get-KeywordFromDatabase"
This function Generates 2 or 3 random words and concatenate them with a delimiter
.DESCRIPTION
Returns one or more random generated words separated by a delimiter
.EXAMPLE
Expand Down
47 changes: 3 additions & 44 deletions docs/en-US/Dicionaries.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,54 +5,13 @@ online version:
schema: 2.0.0
---

# Get-HelloWorld
# Dictionaries

## SYNOPSIS
Returns Hello world

## SYNTAX

```
Get-HelloWorld [[-Value] <String>] [<CommonParameters>]
```
SQLite database used by the Module to store the keywords

## DESCRIPTION
Returns Hello world

## EXAMPLES

### EXAMPLE 1
```
Get-HelloWorld
```

Runs the command

## PARAMETERS

### -Value
Parameter description can go here or above in format: .PARAMETER \<Parameter-Name\>

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: GetHelloWorld
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
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).
## INPUTS
## OUTPUTS

### System.String
## NOTES
Contains several tables that are acessed by the private function`Get-KeywordFromDatabase`

## RELATED LINKS
52 changes: 41 additions & 11 deletions docs/en-US/Get-RandomKeyword.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,62 @@ online version:
schema: 2.0.0
---

# Get-HelloWorld
# Get-RandomKeyword

## SYNOPSIS
Returns Hello world
This functions handles the request for random Keyword based using the function "Get-KeywordFromDatabase"

## SYNTAX

```
Get-HelloWorld [[-Value] <String>] [<CommonParameters>]
Get-RandomKeyword [[-Dictionary] <String>] [<CommonParameters>]
```

## DESCRIPTION
Returns Hello world
Returns a random Keyword from one of the following dictionaries: ["28kAdj",
"5kColors","Aminoacids","Animals","Books",
"Brazilian","Colors","Comp","Compounds","Elements",
"Fields","Generas","Lab","Metals","NF-Adj",
"NF-Names","Nobel","Nucleic","RPG","Species"]


## EXAMPLES

### EXAMPLE 1
```
Get-HelloWorld
```powershell
Get-RandomKeyword -Dicitionary Nobel
```

Runs the command
Returns a random Nobel winner

## PARAMETERS

### -Value
Parameter description can go here or above in format: .PARAMETER \<Parameter-Name\>
### -Dictionary

Specifies wich Dictiory use for finding random words

Options:
DictName Description
- 28kAdj - 28.000 Adjectives
- 5kColors - 5.000 Color names
- Aminoacids - Aminoacids names
- Animals - Animals names
- Books - Important Biological Books
- Brazilian - Important Brazilian Scientists
- Colors - HTML5 Named Colors
- Comp - Computation related Keyworks
- Compounds - Chemical compounds name-parts
- Elements - Periodic table elements
- Fields - Fields Medal Laureates
- Generas - Bacterial Generas
- Lab - Laboratory related keywords
- Metals - Metals and Alloys names
- NF-Adj - Adjective List from Nextflow run ID
- NF-Names - Important Scientists from Newxtflow run ID
- Nobel - Nobel Laureates
- Nucleic - Nucleic Acid Bases
- RPG - Role Playing Games related Keywords
- Species - Bacterial Species

```yaml
Type: String
Expand All @@ -40,19 +69,20 @@ Aliases:

Required: False
Position: 1
Default value: GetHelloWorld
Default value: Aminoacid
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
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).
## INPUTS
## OUTPUTS
### System.String
A random string from one of the Dictionaries
## NOTES
## RELATED LINKS
65 changes: 55 additions & 10 deletions docs/en-US/Get-RandomPhrase.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,32 @@ online version:
schema: 2.0.0
---

# Get-HelloWorld
# Get-RandomPhrase

## SYNOPSIS
Returns Hello world
This function Generates 2 or 3 random words and concatenate them with a delimiter

## SYNTAX

```
Get-HelloWorld [[-Value] <String>] [<CommonParameters>]
Get-RandomPhrase [[-Start] <String>] [[-Middle] <String>] [[-End] <String>] [<CommonParameters>]
```

## DESCRIPTION
Returns Hello world

Returns one or more random generated words separated by a delimiter
## EXAMPLES

### EXAMPLE 1
```
Get-HelloWorld
Get-RandomPhrase -Start Metals -Middle Nobel -End Species -Delimiter "-"
```

Runs the command
Returns a random phrase joined by a delimiter, exemple output: `Flevorium-Koshiba-antibiotica`

## PARAMETERS

### -Value
Parameter description can go here or above in format: .PARAMETER \<Parameter-Name\>
### -Start
Specifies the dictionary to be used for the first word, can be one of the dicitionaries or None

```yaml
Type: String
Expand All @@ -40,19 +39,65 @@ Aliases:

Required: False
Position: 1
Default value: GetHelloWorld
Default value: Aminoacid
Accept pipeline input: False
Accept wildcard characters: False
```
### -Middle
Specifies the dictionary to be used for the middle word, can be one of the dicitionaries or None
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -End
Specifies the dictionary to be used for the Last word, can be one of the dicitionaries or None
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: Generas
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
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).
### -Delimiter
Specifies which string will be used as delimiter for the Phrase
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: "_"
Accept pipeline input: False
Accept wildcard characters: False

```
## INPUTS
## OUTPUTS
### System.String
A random string Joined by the specified Delimiter.
## NOTES
## RELATED LINKS

0 comments on commit ad2c50c

Please sign in to comment.