Skip to content

Commit 1f1504e

Browse files
committed
Update homebrew formula and add docs
1 parent 51c3f39 commit 1f1504e

File tree

4 files changed

+61
-60
lines changed

4 files changed

+61
-60
lines changed

.goreleaser.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ brew:
3838
owner: chclaus
3939
name: dt
4040
folder: Formula
41-
caveats: "CLI tool for common dev tasks."
4241
homepage: "https://github.com/chclaus/dt"
4342
description: "CLI tool for common dev tasks."
4443
install: |

Formula/dt.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,4 @@ def install
99
bin.install "dt"
1010
end
1111

12-
def caveats; <<~EOS
13-
CLI tool for common dev tasks.
14-
EOS
15-
end
1612
end

README.md

Lines changed: 60 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
[![Build Status](https://travis-ci.org/chclaus/dt.svg?branch=master)](https://travis-ci.org/chclaus/dt)
22
[![Go Report](https://goreportcard.com/badge/github.com/chclaus/dt)](https://goreportcard.com/report/github.com/chclaus/dt)
33

4-
# Intro
4+
# dt - the dev toolbelt
5+
56
The dev toolbelt is a fast and flexible tool to handle common use
67
cases of your daily work. Use cases you generally use some online
78
tools.
89

9-
# Table of Contents
10+
## Table of Contents
1011

1112
- [Example](#example)
13+
- [Installation](#installation)
1214
- [Commands](#commands)
1315
* [URI](#uri-command)
1416
* [Base64](#base64-command)
@@ -22,33 +24,61 @@ tools.
2224
- [License](#license)
2325

2426
# Example
25-
Usage:
26-
dt [command]
27+
Usage:
28+
dt [command]
29+
30+
Available Commands:
31+
base64 Encodes or decodes a string to it's base64 representation
32+
date Basic date operations
33+
hash Hashes an arbitrary input with different hash algorithms
34+
help Help about any command
35+
html Escapes a html string and vice versa
36+
jwt Allows decoding of a jwt
37+
server Starts a simple web server to serve static content
38+
random Generates random numbers and strings
39+
uri Encodes or decodes an URI
40+
version Prints the current version of the dt
41+
42+
Flags:
43+
-h, --help help for dt
44+
45+
Use "dt [command] --help" for more information about a command.
46+
47+
## Installation
48+
If you've go installed and your `$GOPATH` is set, you can easily install
49+
dt with:
2750

28-
Available Commands:
29-
base64 Encodes or decodes a string to it's base64 representation
30-
date Basic date operations
31-
hash Hashes an arbitrary input with different hash algorithms
32-
help Help about any command
33-
html Escapes a html string and vice versa
34-
jwt Allows decoding of a jwt
35-
server Starts a simple web server to serve static content
36-
random Generates random numbers and strings
37-
uri Encodes or decodes an URI
38-
version Prints the current version of the dt
51+
go get github.com/chclaus/dt
3952

40-
Flags:
41-
-h, --help help for dt
53+
### Install via Homebrew
4254

43-
Use "dt [command] --help" for more information about a command.
55+
brew tap chclaus/dt [email protected]:chclaus/dt.git
56+
brew install dt
4457

45-
# Commands
58+
### Build
59+
To build the project you can clone the repository with...
60+
61+
git clone [email protected]:chclaus/dt
62+
63+
... and build and install the binary with
4664

47-
## URI command
65+
cd dt && go install
66+
67+
### Build with Docker
68+
To build the repository with docker, do the following:
69+
70+
git clone [email protected]:chclaus/dt
71+
cd dt
72+
docker build -t dt .
73+
docker run --rm dt version
74+
75+
## Commands
76+
77+
### URI command
4878
- Encodes an URI to a safe representation
4979
- Decodes an already encoded URI
5080

51-
## Base64 command
81+
### Base64 command
5282
- Encodes a string to it's base64 representation
5383
- Decodes a base64 string to it's plain representation
5484

@@ -58,7 +88,7 @@ The base64 command can be used with different encodings:
5888
- URL, follows the alternative RFC 4648
5989
- URL Raw, follows the alternative RFC 4648 but with without padding
6090

61-
## Hash command
91+
### Hash command
6292
Returns the hash representation of an input in different hash formats:
6393
- md5
6494
- sha1
@@ -68,65 +98,41 @@ Returns the hash representation of an input in different hash formats:
6898
- sha512
6999
- bcrypt
70100

71-
## JWT command
101+
### JWT command
72102
Decodes a jwt and pretty prints the resulting json.
73103

74104
Further TODOs:
75105
- Signature validation
76106
- JWT creation
77107

78-
## Random command
108+
### Random command
79109
Generates random strings and numbers. Currently supported functions are:
80110
- Generates a random string, based on an alphabet with a specific length.
81111
- Generates a random string with alphanumeric letters.
82112
- Generates a random string with a alphanumeric and special characters.
83113
- Generates random numbers with a specific length.
84114

85-
## Date command
115+
### Date command
86116
Date conversions:
87117
- time millis to RFC 3339
88118
- time nanos to RFC 3339
89119
- RFC 3339 to time millis
90120

91-
## Regex command
121+
### Regex command
92122
TODO
93123

94-
## HTML command
124+
### HTML command
95125
Escapes and unescapes HTML
96126
- transforms a string to an escaped html sequence
97127
- reads a file and prints an escaped html sequence
98128
- unescapes an escaped html sequence to it's raw representation
99129

100-
## Server
130+
### Server
101131
Starts a simple web server to serve static content. You can specify
102132
hostname and port and must set a folder to serve.
103133

104134

105-
# Get dt
106-
## Install
107-
If you've go installed and your `$GOPATH` is set, you can easily install
108-
dt with:
109-
110-
go get github.com/chclaus/dt
111-
112-
## Build
113-
To build the project you can clone the repository with...
114-
115-
git clone [email protected]:chclaus/dt
116-
117-
... and build and install the binary with
118-
119-
cd dt && go install
120-
121-
## Build with Docker
122-
To build the repository with docker, do the following:
123-
124-
git clone [email protected]:chclaus/dt
125-
cd dt
126-
docker build -t dt .
127-
docker run --rm dt version
128-
129-
# Contributing
135+
## Contributing
130136
Everyone is welcome to create pull requests for this project. If you're
131137
new to github, take a look [here](https://help.github.com/categories/collaborating-with-issues-and-pull-requests/)
132138
to get an idea of it.
@@ -135,5 +141,5 @@ If you've got an idea of a function that should find it's way into this
135141
project, but you won't implement it by yourself, please create a new
136142
issue.
137143

138-
# License
144+
## License
139145
dt (dev-toolbelt) is released under the MIT license. See [LICENSE.txt](LICENSE.txt)

cmd/version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var versionCmd = &cobra.Command{
3232
Short: "Prints the current version of the dt",
3333
Long: "All software has versions. This is dt's",
3434
Run: func(cmd *cobra.Command, args []string) {
35-
fmt.Println("dt - the dev toolbelt v0.0.2")
35+
fmt.Println("dt - the dev toolbelt v0.1.2")
3636
},
3737
Example: ``,
3838
}

0 commit comments

Comments
 (0)