Skip to content

Commit 0df2f0e

Browse files
author
Bastien Guerry
committed
chore: Reorganize repository
1 parent adc2669 commit 0df2f0e

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This should take care of installing all you need:
2121

2222
# Installation
2323

24-
bbin install https://raw.githubusercontent.com/codegouvfr/codegouvfr-cli/refs/heads/main/codegouvfr-output-data.clj
24+
bbin install io.github.codegouvfr/codegouvfr-output-data
2525

2626
# [Contributing](CONTRIBUTING.md)
2727
# Support the Clojure(script) ecosystem

bb.edn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
:license {:name "Eclipse Public License - v 2.0"
55
:url "http://www.eclipse.org/legal/epl-v20.html"}
66
:min-bb-version "0.4.0"
7+
:src "src/cdg"
78
:tasks {clean
89
(shell "bash -c"
910
"rm -rf awesome*md *json *xml *csv *yml src/*json src/*xml src/*csv src/*yml src/*md")}}

deps.edn

Whitespace-only changes.

codegouvfr-output-data.clj renamed to src/cdg/codegouvfr-output-data.clj

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
org.babashka/cli {:mvn/version "0.8.62"}
1010
org.babashka/http-client {:mvn/version "0.4.22"}}})
1111

12-
(require '[clj-rss.core :as rss]
13-
'[clojure.tools.logging :as log]
14-
'[babashka.cli :as cli]
15-
'[clojure.walk :as walk]
16-
'[babashka.http-client :as http])
12+
(ns cdg.codegoufr-output-data
13+
(:require [clj-rss.core :as rss]
14+
[clojure.tools.logging :as log]
15+
[babashka.cli :as cli]
16+
[clojure.walk :as walk]
17+
[babashka.http-client :as http]))
1718

1819
;;; Define CLI options
1920

@@ -744,4 +745,5 @@ This list is published under Licence Ouverte 2.0 and CC BY.")
744745
(output-data!)
745746
(display-data!)))))
746747

747-
(-main *command-line-args*)
748+
(when (= *file* (System/getProperty "babashka.file"))
749+
(apply -main *command-line-args*))

0 commit comments

Comments
 (0)