Skip to content

Commit

Permalink
📌 docs and generate command (#4)
Browse files Browse the repository at this point in the history
* Added cobra 🐍

* Deleted trash :trash:

* Added tests ✅

* Added docs and lint

* Making the lint happy

* added generate and remote commands

* making lint happy

* added properties to commands

* added arguments and flags to generate

* file copy for generate

* making linter happy

* feat: added logo & badges

* feat: minor changes
  • Loading branch information
EmperorYP7 authored Apr 13, 2021
1 parent 23a8d23 commit 29b5778
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
![Go Tests](https://github.com/EmperorYP7/tmake/workflows/Tests/badge.svg)
![GoLint](https://github.com/EmperorYP7/tmake/workflows/GoLint/badge.svg)

![TMake Snapshot](./resources/snapshot.png "Current state of TMake")
[![Software License](https://img.shields.io/github/license/EmperorYP7/tmake?style=for-the-badge&logo=appveyor)](/LICENSE.md)
![Stars](https://img.shields.io/github/stars/EmperorYP7/tmake?style=for-the-badge&logo=appveyor)

![TMake Logo](./resources/logo.png "logo")

`TMake` is still work under progress. The aim of this project is to make a functional
and easy to use CLI for making templates with a single command. What templates you ask?
Expand All @@ -13,6 +16,8 @@ about a competition when we're just minutes away from commencing.
To tackle this seemingly minute yet huge issue, I came up with an idea of making a CLI to help
competitive coders to get ready in a single command.

![TMake Snapshot](./resources/snapshot.png "Current state of TMake")

## Getting started

As of now, Tmake's binary is only available through GitHub releases. We'll soon be entering Homebrew,
Expand Down
7 changes: 1 addition & 6 deletions cmd/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,7 @@ sources if they're valid otherwise, will throw an error.
Annotations: map[string]string{},
Version: "",
Run: func(cmd *cobra.Command, args []string) {
err := Copy(args[1], args[2])
if err != nil {
fmt.Printf("Error")
return
}
fmt.Println("Created", args[0], "files")
fmt.Println("Created", args[0], "files at", args[2])
},
SilenceErrors: false,
SilenceUsage: false,
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ its use in competitive programming and many other fields of Computer Science`,
Deprecated: "",
Hidden: false,
Annotations: map[string]string{},
Version: "v1.0",
Version: "v0.1.0beta",
SilenceErrors: false,
SilenceUsage: false,
DisableFlagParsing: false,
Expand Down
Binary file added resources/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 29b5778

Please sign in to comment.