diff options
| author | Lizzy Hunt <lizzy.hunt@usu.edu> | 2024-03-27 15:10:39 -0600 |
|---|---|---|
| committer | Lizzy Hunt <lizzy.hunt@usu.edu> | 2024-03-27 15:10:39 -0600 |
| commit | 97efd2a3740412ec78a018da4fe068c141c9d1ec (patch) | |
| tree | 73904689d6c69898bd834533d33b65106b14ce3e /args | |
| parent | 0dc2679005e70c50024bc49e750f3998a0c4c24b (diff) | |
| download | hatecomputers.club-97efd2a3740412ec78a018da4fe068c141c9d1ec.tar.gz hatecomputers.club-97efd2a3740412ec78a018da4fe068c141c9d1ec.zip | |
clean up old sessions every 500 seconds
Diffstat (limited to 'args')
| -rw-r--r-- | args/args.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/args/args.go b/args/args.go index a360d57..64dee35 100644 --- a/args/args.go +++ b/args/args.go @@ -18,6 +18,7 @@ type Arguments struct { Port int Server bool Migrate bool + Scheduler bool OauthConfig *oauth2.Config OauthUserInfoURI string @@ -28,6 +29,7 @@ func GetArgs() (*Arguments, error) { databasePath := flag.String("database-path", "./hatecomputers.db", "Path to the SQLite database") templatePath := flag.String("template-path", "./templates", "Path to the template directory") staticPath := flag.String("static-path", "./static", "Path to the static directory") + scheduler := flag.Bool("scheduler", false, "Run scheduled jobs via cron") server := flag.Bool("server", false, "Run the server") migrate := flag.Bool("migrate", false, "Run the migrations") @@ -83,6 +85,7 @@ func GetArgs() (*Arguments, error) { Port: *port, Server: *server, Migrate: *migrate, + Scheduler: *scheduler, OauthConfig: oauthConfig, OauthUserInfoURI: oauthUserInfoURI, |
