New package: dnote-cli-0.2.0
This commit is contained in:
parent
ea803fff2b
commit
0aa5f9edf3
|
@ -0,0 +1,22 @@
|
||||||
|
--- utils/utils.go.bck 2018-02-13 03:06:34.295215926 -0500
|
||||||
|
+++ utils/utils.go 2018-02-13 03:06:52.708205990 -0500
|
||||||
|
@@ -24,7 +24,7 @@
|
||||||
|
|
||||||
|
// GenerateUID returns a uid
|
||||||
|
func GenerateUID() string {
|
||||||
|
- return uuid.NewV4().String()
|
||||||
|
+ return uuid.Must(uuid.NewV4()).String()
|
||||||
|
}
|
||||||
|
|
||||||
|
func GetInput() (string, error) {
|
||||||
|
--- migrate/migrations.go.bck 2018-02-13 03:10:28.827089361 -0500
|
||||||
|
+++ migrate/migrations.go 2018-02-13 03:10:51.090077347 -0500
|
||||||
|
@@ -48,7 +48,7 @@
|
||||||
|
notes := []migrateToV2PostNote{}
|
||||||
|
for _, note := range book {
|
||||||
|
newNote := migrateToV2PostNote{
|
||||||
|
- UUID: uuid.NewV4().String(),
|
||||||
|
+ UUID: uuid.Must(uuid.NewV4()).String(),
|
||||||
|
Content: note.Content,
|
||||||
|
AddedOn: note.AddedOn,
|
||||||
|
EditedOn: 0,
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Template file for 'dnote-cli'
|
||||||
|
pkgname=dnote-cli
|
||||||
|
version=0.2.0
|
||||||
|
revision=1
|
||||||
|
wrksrc=cli-${version}
|
||||||
|
build_style=go
|
||||||
|
go_import_path="github.com/dnote-io/cli"
|
||||||
|
hostmakedepends="git dep"
|
||||||
|
short_desc="Capture what you learn as you code without leaving the command line"
|
||||||
|
maintainer="Toyam Cox <Vaelatern@Voidlinux.eu>"
|
||||||
|
license="MIT"
|
||||||
|
homepage="https://dnote.io/"
|
||||||
|
distfiles="https://github.com/dnote-io/cli/archive/v${version}.tar.gz"
|
||||||
|
checksum=c64697d6884b728a48bd0ccc8353e1b40f0d34489935427c59b914aa76c0e316
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vlicense LICENSE
|
||||||
|
}
|
Loading…
Reference in New Issue