-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a2a5b52
commit 33628e3
Showing
28 changed files
with
248 additions
and
547 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Feature Description | ||
|
||
A clear and concise description of the feature you would like to request. | ||
|
||
## Use Case | ||
|
||
Describe the use case or problem this feature would solve. | ||
|
||
## Proposed Solution | ||
|
||
If you have any ideas or suggestions on how this feature could be implemented, please describe them here. | ||
|
||
## Additional Information | ||
|
||
Add any additional information or context about the feature request. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Bug Description | ||
|
||
A clear and concise description of the bug. | ||
|
||
## Steps to Reproduce | ||
|
||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See the error. | ||
|
||
## Expected Behavior | ||
|
||
A clear and concise description of what you expected to happen. | ||
|
||
## Actual Behavior | ||
|
||
A clear and concise description of what actually happened. | ||
|
||
## Screenshots or Additional Information | ||
|
||
If applicable, add screenshots or additional information to help explain the problem. | ||
|
||
## Environment | ||
|
||
- **Operating System**: [e.g., Windows, macOS, Linux] | ||
- **Cloney Version**: [e.g., 22] | ||
|
||
## Additional Context | ||
|
||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
|
||
# Change Log | ||
|
||
All notable changes to this project are documented in this file. | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/) | ||
and this project adheres to [Semantic Versioning](http://semver.org/). | ||
|
||
## Cloney 0.2.0 (Latest) - 2023-10-05 | ||
|
||
### Added | ||
|
||
- Added the `docs` command. | ||
|
||
### Changed | ||
|
||
- Changed the `dry-run` and `validate` commands to accept a path to a local template repository as the first argument. Before this change, you had to use the `-p, --path` flag to have the same effect. | ||
|
||
```bash | ||
# Before | ||
$ cloney dry-run -p /path/to/template-repo | ||
|
||
# After | ||
$ cloney dry-run /path/to/template-repo | ||
``` | ||
|
||
### Fixed | ||
|
||
- Fixed a security issue that allowed users to create files and directories outside the scope of the template repository. | ||
- Addressed an issue where the `CLONEY_GIT_TOKEN` environment variable was not being utilized when interacting with private Git repositories. | ||
|
||
## Cloney 0.1.0 - 2023-10-01 | ||
|
||
This is the first release of Cloney. | ||
|
||
### Added | ||
|
||
- CLI commands: `clone`, `dry-run`, `info`, `start`, `validate`, `version`. | ||
|
||
### Changed | ||
|
||
- No changes. | ||
|
||
### Fixed | ||
|
||
- No fixes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 Arthur Sudbrack Ibarra | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package commands | ||
|
||
import ( | ||
"fmt" | ||
"os/exec" | ||
"runtime" | ||
|
||
"github.com/ArthurSudbrackIbarra/cloney/terminal" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
// docsCmd is the function that runs when the 'docs' command is called. | ||
func docsCmdRun(cmd *cobra.Command, args []string) error { | ||
// Variable to store errors. | ||
var err error | ||
|
||
// Open the Cloney documentation in the default browser. | ||
switch runtime.GOOS { | ||
case "linux": | ||
err = exec.Command("xdg-open", appConfig.CloneyDocumentationURL).Start() | ||
case "windows": | ||
err = exec.Command("rundll32", "url.dll,FileProtocolHandler", appConfig.CloneyDocumentationURL).Start() | ||
case "darwin": | ||
err = exec.Command("open", appConfig.CloneyDocumentationURL).Start() | ||
default: | ||
terminal.ErrorMessage("Compatibility error", fmt.Errorf("unsupported operating system")) | ||
} | ||
if err != nil { | ||
terminal.ErrorMessage("Error opening Cloney documentation in default browser", err) | ||
} | ||
|
||
return nil | ||
} | ||
|
||
// CreateDocsCommand creates the 'docs' command. | ||
func CreateDocsCommand() *cobra.Command { | ||
docsCmd := &cobra.Command{ | ||
Use: "docs", | ||
Short: "Open the Cloney documentation in your browser", | ||
Long: "Open the Cloney documentation in your browser.", | ||
PersistentPreRun: persistentPreRun, | ||
RunE: docsCmdRun, | ||
} | ||
|
||
return docsCmd | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package commands | ||
|
||
// TODO: Add 'docs' command tests. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package commands | ||
|
||
// TODO: Add 'validate' command tests. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.