diff --git a/.gitignore b/.gitignore index e35d885..a2aca41 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,17 @@ -_build +# OCaml build artifacts +_build/ +*.install +*.merlin + +# Third-party sources (fetch locally with opam source) +third_party/ + +# Editor and OS files +.DS_Store +*.swp +*~ +.vscode/ +.idea/ + +# Opam local switch +_opam/ diff --git a/dune-project b/dune-project index d2a478e..32e04f7 100644 --- a/dune-project +++ b/dune-project @@ -8,7 +8,7 @@ (authors "Anil Madhavapeddy") (homepage "https://tangled.sh/@anil.recoil.org/xdge") (maintainers "Anil Madhavapeddy ") -(bug_reports "https://tangled.sh/@anil.recoil.org/xgde/issues") +(bug_reports "https://tangled.sh/@anil.recoil.org/xdge/issues") (maintenance_intent "(latest)") (package @@ -24,7 +24,7 @@ (ocaml (>= 5.1.0)) (eio (>= 1.1)) (cmdliner (>= 1.2.0)) - (fmt (>= 0.11.0)) + fmt xdg (eio_main :with-test) (odoc :with-doc) diff --git a/lib/xdge.ml b/lib/xdge.ml index fe17770..83be481 100644 --- a/lib/xdge.ml +++ b/lib/xdge.ml @@ -1,3 +1,8 @@ +(*--------------------------------------------------------------------------- + Copyright (c) 2025 Anil Madhavapeddy . All rights reserved. + SPDX-License-Identifier: ISC + ---------------------------------------------------------------------------*) + type source = Default | Env of string | Cmdline type t = { diff --git a/lib/xdge.mli b/lib/xdge.mli index 29e9bd9..0c0af20 100644 --- a/lib/xdge.mli +++ b/lib/xdge.mli @@ -1,3 +1,8 @@ +(*--------------------------------------------------------------------------- + Copyright (c) 2025 Anil Madhavapeddy . All rights reserved. + SPDX-License-Identifier: ISC + ---------------------------------------------------------------------------*) + (** XDG Base Directory Specification support with Eio capabilities This library provides an OCaml implementation of the XDG Base Directory diff --git a/test/test_paths.ml b/test/test_paths.ml index c4acb39..38d58dd 100644 --- a/test/test_paths.ml +++ b/test/test_paths.ml @@ -1,3 +1,8 @@ +(*--------------------------------------------------------------------------- + Copyright (c) 2025 Anil Madhavapeddy . All rights reserved. + SPDX-License-Identifier: ISC + ---------------------------------------------------------------------------*) + let test_path_validation () = Printf.printf "Testing XDG path validation...\n"; (* Test absolute path validation for environment variables *) diff --git a/test/test_paths.mli b/test/test_paths.mli index e69de29..f979fcc 100644 --- a/test/test_paths.mli +++ b/test/test_paths.mli @@ -0,0 +1,4 @@ +(*--------------------------------------------------------------------------- + Copyright (c) 2025 Anil Madhavapeddy . All rights reserved. + SPDX-License-Identifier: ISC + ---------------------------------------------------------------------------*) diff --git a/test/xdg_example.ml b/test/xdg_example.ml index 9515987..2f2c905 100644 --- a/test/xdg_example.ml +++ b/test/xdg_example.ml @@ -1,3 +1,8 @@ +(*--------------------------------------------------------------------------- + Copyright (c) 2025 Anil Madhavapeddy . All rights reserved. + SPDX-License-Identifier: ISC + ---------------------------------------------------------------------------*) + let run (xdg, cfg) = Fmt.pr "%a@.%a@.@.%a@.%a@." Fmt.(styled `Bold string) diff --git a/test/xdg_example.mli b/test/xdg_example.mli index e69de29..f979fcc 100644 --- a/test/xdg_example.mli +++ b/test/xdg_example.mli @@ -0,0 +1,4 @@ +(*--------------------------------------------------------------------------- + Copyright (c) 2025 Anil Madhavapeddy . All rights reserved. + SPDX-License-Identifier: ISC + ---------------------------------------------------------------------------*) diff --git a/xdge.opam b/xdge.opam index c637a76..d9622f9 100644 --- a/xdge.opam +++ b/xdge.opam @@ -7,7 +7,7 @@ maintainer: ["Anil Madhavapeddy "] authors: ["Anil Madhavapeddy"] license: "ISC" homepage: "https://tangled.sh/@anil.recoil.org/xdge" -bug-reports: "https://tangled.sh/@anil.recoil.org/xgde/issues" +bug-reports: "https://tangled.sh/@anil.recoil.org/xdge/issues" depends: [ "dune" {>= "3.20"} "ocaml" {>= "5.1.0"}