Skip to content

Commit 5c69583

Browse files
author
snoonx
committed
phell::auto-generated-repo::gl-apira::success
1 parent f43d1d5 commit 5c69583

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+21001
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
test/
2+
dist/

.gitlab-ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# author: mnoxx @ proton me
2+
# date: Saturday, 24 September 2022 2:24:20 AM
3+
# version: v1.0
4+
# env: powershell(5.x), pwsh(7.x)
5+
stages:
6+
- build # dependancies
7+
- pester # pester test script
8+
- test_pwsh # test powershell core latest
9+
- test_powershell # test powershell
10+
- deploy_psprivate # deploy to psgallary private instance
11+
- deploy_psgallary # deploy to psgallary
12+
build-job:
13+
stage: build
14+
script:
15+
- pwsh.exe
16+
- write-host -f green "template ci\cd config successfull"
17+
pester-job:
18+
stage: pester
19+
script:
20+
- pwsh.exe
21+
- write-host -f green "template ci\cd config successfull"
22+
test-pwsh-job:
23+
stage: test_pwsh
24+
script:
25+
- pwsh.exe
26+
- write-host -f green "template ci\cd config successfull"
27+
test-powershell-job:
28+
stage: test_powershell
29+
script:
30+
- powershell.exe
31+
- write-host -f green "template ci\cd config successfull"
32+
psgallary-deploy-job:
33+
stage: deploy_psgallary
34+
script:
35+
- pwsh.exe
36+
psprivate-deploy-job:
37+
stage: deploy_psprivate
38+
script:
39+
- pwsh.exe
40+
- write-host -f green "template ci\cd config successfull"
41+
#include:
42+
# - template: auto-devops.gitlab-ci.yml

CHANGELOG-CF.md

Lines changed: 1368 additions & 0 deletions
Large diffs are not rendered by default.

CHANGELOG.md

Lines changed: 2794 additions & 0 deletions
Large diffs are not rendered by default.

CommitFusion-title.png

11 KB
Loading

CommitFusion.psd1

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
#
2+
# Module manifest for module 'CommitFUsion'
3+
#
4+
# Generated by: gsnow / snoonx
5+
#
6+
# Generated on: 12/02/2023
7+
#
8+
9+
@{
10+
11+
# Script module or binary module file associated with this manifest.
12+
RootModule = 'CommitFusion.psm1'
13+
14+
# Version number of this module.
15+
ModuleVersion = '0.1.0'
16+
17+
# Supported PSEditions
18+
# CompatiblePSEditions = @()
19+
20+
# ID used to uniquely identify this module
21+
GUID = 'c7e7262e-8c66-4c0d-9454-9927449c2927'
22+
23+
# Author of this module
24+
Author = 'snoonx'
25+
26+
# Company or vendor of this module
27+
CompanyName = 'CobaShell'
28+
29+
# Copyright statement for this module
30+
Copyright = '2023 snoonx. All rights reserved.'
31+
32+
# Description of the functionality provided by this module
33+
Description = 'Commit Fusion is a PowerShell module that allows you to create conventional commits with ease.'
34+
35+
# Minimum version of the PowerShell engine required by this module
36+
PowerShellVersion = '7.3.2'
37+
38+
# Name of the PowerShell host required by this module
39+
# PowerShellHostName = ''
40+
41+
# Minimum version of the PowerShell host required by this module
42+
# PowerShellHostVersion = ''
43+
44+
# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
45+
# DotNetFrameworkVersion = ''
46+
47+
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
48+
# ClrVersion = ''
49+
50+
# Processor architecture (None, X86, Amd64) required by this module
51+
# ProcessorArchitecture = ''
52+
53+
# Modules that must be imported into the global environment prior to importing this module
54+
# RequiredModules = @()
55+
56+
# Assemblies that must be loaded prior to importing this module
57+
# RequiredAssemblies = @()
58+
59+
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
60+
# ScriptsToProcess = @()
61+
62+
# Type files (.ps1xml) to be loaded when importing this module
63+
# TypesToProcess = @()
64+
65+
# Format files (.ps1xml) to be loaded when importing this module
66+
# FormatsToProcess = @()
67+
68+
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
69+
# NestedModules = @()
70+
71+
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
72+
FunctionsToExport = @(
73+
'Get-CiSet',
74+
'Get-CiSetFusion',
75+
'Get-CommitAsObject',
76+
'Get-CommitString',
77+
'Get-Emoji',
78+
'Get-EmojiIndex',
79+
'New-CommitFusion',
80+
'New-ConventionalCommit',
81+
'Write-FusionMD'
82+
)
83+
84+
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
85+
CmdletsToExport = ''
86+
87+
# Variables to export from this module
88+
VariablesToExport = ''
89+
90+
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
91+
AliasesToExport = ''
92+
93+
# DSC resources to export from this module
94+
# DscResourcesToExport = @()
95+
96+
# List of all modules packaged with this module
97+
# ModuleList = @()
98+
99+
# List of all files packaged with this module
100+
# FileList = @()
101+
102+
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
103+
PrivateData = @{
104+
105+
PSData = @{
106+
107+
# Tags applied to this module. These help with module discovery in online galleries.
108+
Tags = 'automation'
109+
110+
# A URL to the license for this module.
111+
LicenseUri = 'https://choosealicense.com/licenses/mit'
112+
113+
# A URL to the main website for this project.
114+
ProjectUri = 'https://gitlab.snowlab.tk/powershell/ccommits.git'
115+
116+
# A URL to an icon representing this module.
117+
IconUri = 'https://gitlab.snowlab.tk/powershell/ccommits/-/blob/main/logo.svg'
118+
119+
# ReleaseNotes of this module
120+
ReleaseNotes = 'https://gitlab.snowlab.tk/powershell/ccommits/-/blob/main/Releases.md'
121+
122+
# Prerelease string of this module
123+
#Prerelease = 'alpha1'
124+
125+
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
126+
# RequireLicenseAcceptance = $false
127+
128+
# External dependent modules of this module
129+
# ExternalModuleDependencies = @()
130+
131+
} # End of PSData hashtable
132+
133+
} # End of PrivateData hashtable
134+
135+
# HelpInfo URI of this module
136+
# HelpInfoURI = ''
137+
138+
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
139+
# DefaultCommandPrefix = ''
140+
141+
}
142+

CommitFusion.psm1

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
using module libs\CommitFusion_class.psm1
2+
using module libs\cmdlets\New-CommitFusion.psm1
3+
using module libs\cmdlets\New-ConventionalCommit.psm1
4+
using module libs\cmdlets\Get-CiSet.psm1
5+
using module libs\cmdlets\Get-CiSetFusion.psm1
6+
using module libs\cmdlets\Get-Emoji.psm1
7+
using module libs\cmdlets\Get-EmojiIndex.psm1
8+
using module libs\cmdlets\Format-FusionMD.psm1
9+
using module libs\cmdlets\Get-CommitAsObject.psm1
10+
using module libs\cmdlets\Get-CommitAsString.psm1
11+
using module libs\cmdlets\Get-GitAutoVersion.psm1
12+
# using module libs\cmdlets\Out-Object.psm1
13+
# using module libs\cmdlets\Out-String.psm1
14+
using module libs\cmdlets\Update-ChangeLog.psm1
15+
16+
17+
<#
18+
* Set global instance for all cmdlets New-CommitFusion
19+
* can be used to create a new instance outside of the global instance
20+
#>
21+
$global:commitfusion = New-Object CommitFusion
22+
#$global:commitfusion = New-Object CommitFusion -Argumentlist $pathtocustomconfigfile
23+
24+
# Set the module root path
25+
$global:CommitFusionBaseModuleRoot = Split-Path -Path $MyInvocation.MyCommand.Path -Parent
26+
write-host -ForegroundColor Green "Module CommitFuison loaded: ModuleRoot: $global:BaseModuleRoot"
27+
28+
29+
Export-ModuleMember -Function New-CommitFusion
30+
Export-ModuleMember -Function New-ConventionalCommit
31+
Export-ModuleMember -Function Get-CiSet
32+
Export-ModuleMember -Function Get-CiSetFusion
33+
Export-ModuleMember -Function Get-Emoji
34+
Export-ModuleMember -Function Get-EmojiIndex
35+
Export-ModuleMember -Function Get-CommitAsObject
36+
Export-ModuleMember -Function Get-CommitAsString
37+
Export-ModuleMember -Function Get-GitAutoVersion
38+
Export-ModuleMember -Function Format-FusionMD
39+
Export-ModuleMember -Function Update-Changelog
40+
# Export-ModuleMember -Function Out-Object
41+
# Export-ModuleMember -Function Out-String
42+
43+
44+
<#
45+
---------------------------------------------------------------------------------------------------------------------------------------
46+
! ___ _) | ____| _)
47+
? | _ \ __ `__ \ __ `__ \ | __| | | | __| | _ \ __ \
48+
? | ( | | | | | | | | | __| | | \__ \ | ( | | |
49+
! \____| \___/ _| _| _| _| _| _| _| \__| _| \__,_| ____/ _| \___/ _| _|
50+
51+
---------------------------------------------------------------------------------------------------------------------------------------
52+
53+
? NOTES
54+
This class is still in development and is not ready for production use.
55+
@Colorful comments vscode url:
56+
- #? https://marketplace.visualstudio.com/items?itemName=bierner.colorful-comments
57+
58+
& CLASS: [CommitFusion]
59+
~ VERSION: 0.1.0
60+
- AUTHOR: snoonx
61+
- LICENSE: MIT
62+
* DESCRIPTION:
63+
^_Conventional Commits
64+
is a specification that defines a standard convention
65+
for structuring commit messages in software development. It provides a
66+
consistent format and semantic meaning to commit messages, making it
67+
easier to understand the purpose and impact of each commit. Here are the
68+
main properties defined by Conventional Commits:
69+
&VALUES
70+
^- Type
71+
^- Scope
72+
^- Description
73+
^- Body
74+
^- Footer
75+
This module provides a class that can be used to create Conventional
76+
Commits. It also provides a cmdlet that can be used to create Conventional
77+
Commits from the command line. it them parses the commit message and injecting
78+
the commit message into the commit template, m before returning the commit message
79+
! * * NOTE**
80+
TODO - Add support for the commit template
81+
TODO - Add Support for just generating and return commit string
82+
? DEPENDANCIES:
83+
~ ColorTune
84+
~ Write-Inexco #? Colortune Replaces this
85+
~ powerunicode
86+
^ BUILD ENV---: BUILD: Powershellcore 7.3.1
87+
^ SUPPORTED VERSIONS
88+
Powerhshell 5.1^
89+
Powershell 7.^
90+
Powershellcore(linux) 7.^
91+
#>

Descrption.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Class ConventionalCommit
2+
This class defines a ConventionalCommit object with properties for each of the components of a Conventional Commit message: Type, Scope, Description, Body, and Footer. The class also provides a ToString method that returns the commit message as a string in the Conventional Commits format.
3+
4+
In the example usage, a new ConventionalCommit object is created and its properties are set. The ToString method is then called to generate the commit message, which can be passed as the argument to the -m option in the git commit command.

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
MIT License
2+
3+
Copyright (c) [year] [fullname]
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

0 commit comments

Comments
 (0)