c79f4e811b
fix: implement forbidigo's suggestion fmt.Println
continuous-integration/drone/push Build is passing
2022-05-27 22:28:43 +02:00
6a2470db54
fix: implement godot's suggestions on app comments
continuous-integration/drone/push Build is passing
2022-05-27 22:14:29 +02:00
d32b44aedd
app(main_test): log success
continuous-integration/drone/push Build is passing
2022-05-27 22:06:30 +02:00
c190f3f6f2
app: mark first window as the main one
continuous-integration/drone Build is passing
continuous-integration/drone/push Build is passing
2022-05-27 17:43:35 +02:00
100b961494
app: add a way to get images (from FS for now)
continuous-integration/drone/push Build is passing
2022-05-26 20:42:35 +02:00
53be19912a
app: add stuff to 'browse' tab
continuous-integration/drone/push Build is passing
2022-05-25 23:33:27 +02:00
37bdd08e41
app: move 'search tab' creation to search.go
continuous-integration/drone/push Build is passing
2022-05-25 22:31:09 +02:00
bd58ca6608
pre-commit: alter when 'nix build' runs
...
continuous-integration/drone/push Build is passing
* do not run 'nix build' on arbitrary go src file changes, instead
(except for nix and flake related changes) only run on module-wide
changes, i.e. when sum,mod files change as these require flake
vendorSha256 updates or else they would fail to build.
2022-05-25 19:39:31 +02:00
6372fd93fd
app: mv 'search' to a tab
continuous-integration/drone/push Build is passing
2022-05-25 19:33:13 +02:00
325a1ca50d
app: use buttons with icons
continuous-integration/drone/push Build is passing
2022-05-25 18:59:13 +02:00
a859916f1c
ci: trigger goreportcard refresh
continuous-integration/drone/push Build is passing
2022-05-25 16:50:29 +02:00
fdabd847c6
app: add 'about' page
continuous-integration/drone/push Build is passing
2022-05-24 23:27:39 +02:00
654ef05e0b
fix modelines [skip ci]
2022-05-24 14:13:03 +02:00
c3d18b5250
pre-commit: optimise local hook triggers
...
continuous-integration/drone/push Build is passing
* rm 'require_serial = false' occurences as that's the default value,
which makes it redundant here.
* do not "always_run" hooks
* only run relevant local hooks when pertaining files/file groups have
changed, e.g. there is no need to run statix linter when no nix files
have changed or equally it is not necessary to run 'nix build' when
none of the flake files (flake.{nix,lock}), any '*.nix' or go source,
mod or sum files have changed.
all of the above results in much faster pre-commit runs, i.e. shorter
feedback loops, i.e. faster iteration cycles.
2022-05-24 12:20:52 +02:00
dabb229e07
pre-commit(golang): rm go-lint, add revive,go-sec
...
[skip ci]
2022-05-24 11:44:55 +02:00
5cb040b7a8
app(xkcdreader): init,get fyne.App from anywhere
continuous-integration/drone/push Build is passing
2022-05-23 17:56:24 +02:00
8c72ee9443
app: add a basic browse tab UI
continuous-integration/drone/push Build is passing
2022-05-23 17:04:56 +02:00
86f9ea5a28
app: chore(readability): spread the args over m...
...
continuous-integration/drone/push Build is passing
...ultiple lines
2022-05-23 16:54:31 +02:00
8142ed8cfe
app: add basic tabs
continuous-integration/drone/push Build is passing
2022-05-23 01:23:03 +02:00
e669770871
app: create a toolbar
continuous-integration/drone/push Build is passing
2022-05-23 00:49:04 +02:00
2e13ad9faf
flake: add 'add-license' command
continuous-integration/drone/push Build is passing
2022-05-21 22:05:36 +02:00
105e9efeeb
ci(nix): run nixpkgs-fmt asap
continuous-integration/drone/push Build is passing
2022-05-21 21:47:27 +02:00
b7e81edbbe
ci(nix): set up cachix earlier
continuous-integration/drone/push Build is passing
2022-05-21 21:04:22 +02:00
269ead9d22
ci: rename: pre-build -> set up cachix
continuous-integration/drone/push Build is passing
2022-05-21 20:32:15 +02:00
9f37caad91
flake: add 'upcache' command
...
continuous-integration/drone/push Build is passing
easy way to push dev env to cachix
2022-05-21 19:41:43 +02:00
d0350962e9
ci: merge go {vet|test} steps for fedora,arch
continuous-integration/drone/push Build is passing
2022-05-21 16:10:49 +02:00
3839735dc8
app: start building up a layout
continuous-integration/drone/push Build is passing
2022-05-21 01:18:06 +02:00
9d29017860
add copyright headers+enforce w/ addlicense
continuous-integration/drone/push Build is passing
2022-05-21 00:49:13 +02:00
da71170af1
flake(shells): add ad-hoc cmds [skip ci]
2022-05-20 22:16:11 +02:00
d48923e97f
ci(nix): run go {vet|test} in one step
continuous-integration/drone/push Build is passing
2022-05-20 21:11:43 +02:00
fb0d215760
flake,go: add,use overlay.nix w/ patched Go
continuous-integration/drone/push Build is passing
2022-05-20 19:52:31 +02:00
f513c92159
flake(nixpkgs): bump to 52dc75a4fe
...
continuous-integration/drone/push Build is passing
ref:
52dc75a4fe
2022-05-20 14:04:58 +02:00
916616927e
ci(nix/test): add '-cover'
continuous-integration/drone/push Build is passing
2022-05-20 13:18:05 +02:00
f099f43f05
go: move app logic to xkcdreader package
continuous-integration/drone/push Build is passing
2022-05-19 17:24:00 +02:00
7550acc8ab
ci: test executable's version subcmd
continuous-integration/drone/push Build is passing
2022-05-16 15:45:40 +02:00
a16bd3ef48
ci,pre-commit: rename 'nix-build' to 'nix build'..
...
continuous-integration/drone/push Build is passing
to reflect command's flake nature. nix-build actually uses default.nix -
legacy way of building stuff.
2022-05-16 13:56:26 +02:00
e06e6f4076
fix cmd behaviour for early exit
continuous-integration/drone/push Build is passing
2022-05-15 11:27:48 +02:00
c335867935
readme: add {godocsreference,goreportcard} badges
...
also bump version: v0.0.0 -> v0.0.12
[skip ci]
2022-05-13 23:06:21 +02:00
0010ddd9e9
add .gitattributes [skip ci]
2022-05-13 22:59:17 +02:00
0d3765e0d9
add .pre-commit-config.yaml [skip ci]
2022-05-13 22:58:09 +02:00
ecfb129096
main: add more tests
continuous-integration/drone/push Build is passing
2022-05-13 22:41:31 +02:00
44c2a69e9d
ignore {.drone.{star,yml},*.out} files [skip ci]
2022-05-13 22:36:41 +02:00
4b6e655ebf
use github.com/spf13/cobra for app cmds
...
continuous-integration/drone/push Build is passing
* add 'version' command - "go-xkcdreader version" returns a formatted
version of the app
* test (among other things) that the version in flake.nix matches the
version hardcoded in app's go code (cmd/version.go)
2022-05-12 15:54:16 +02:00
f009bb2cc1
embed Version string in app
...
continuous-integration/drone/push Build is passing
* print version on app startup
2022-05-10 20:41:06 +02:00
c05fc6c995
app: add test for a greeting message
...
continuous-integration/drone/push Build is passing
* provide app greeting using a function
* test that the app greets properly
* run tests for nix with 'nix-shell --run'...
2022-05-07 00:31:44 +02:00
bc1542012b
ignore go-compiled binary [skip ci]
2022-05-06 22:40:53 +02:00
cb391e3851
direnv: add add_extra_vimrc hook [skip ci]
...
* also provide .vimrc-example, it would be picked up when renamed to
plain .vimrc
* also add .vimrc to .gitignore as there this .vimrc is supposed to have
personal editor configurations (it doesn't have to but I am not going
to impose editor configs on anyone, hence if anyone uses it, it's
personal)
2022-05-08 20:16:46 +02:00
2e7d3cf1b1
flake: build checks are only relevant with DISPLAY
continuous-integration/drone/push Build is passing
2022-05-06 22:29:17 +02:00
194328118b
ci: add .drone.starlark
...
continuous-integration/drone/push Build is passing
also add build status badge to README.md (very important)
---
Squashed commit of the following:
commit 226f181e6dded95357cf3e31c918e811bc6b9bae
Author: surtur <a_mirre@utb.cz>
Date: Wed May 4 16:37:08 2022 +0200
ci: add .drone.starlark
also add build status badge to README.md
2022-05-06 22:25:38 +02:00
938f8189cb
go,flake: add a fyne window,nixGL overlay,deps,fmt
...
* reformat the flake
* create a fyne application, specify deps as both buildGoModule
buildInputs and packages in devShells
* add nixGL overlay to devShells so that openGL-based apps (such as fyne
apps) run fine for non-NixOS users
* add build/link flags
2022-05-03 20:22:43 +02:00