A set of utilities for working with the AT Protocol in Elixir.

Initial commit

ovyerus.com faaa3c31

+4
.formatter.exs
··· 1 + # Used by "mix format" 2 + [ 3 + inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] 4 + ]
+26
.gitignore
··· 1 + # The directory Mix will write compiled artifacts to. 2 + /_build/ 3 + 4 + # If you run "mix test --cover", coverage assets end up here. 5 + /cover/ 6 + 7 + # The directory Mix downloads your dependencies sources to. 8 + /deps/ 9 + 10 + # Where third-party dependencies like ExDoc output generated docs. 11 + /doc/ 12 + 13 + # If the VM crashes, it generates a dump, let's ignore it too. 14 + erl_crash.dump 15 + 16 + # Also ignore archive artifacts (built via "mix archive.build"). 17 + *.ez 18 + 19 + # Ignore package tarball (built via "mix hex.build"). 20 + atex-*.tar 21 + 22 + # Temporary files, for example, from tests. 23 + /tmp/ 24 + 25 + .envrc 26 + .direnv
+21
README.md
··· 1 + # Atex 2 + 3 + **TODO: Add description** 4 + 5 + ## Installation 6 + 7 + If [available in Hex](https://hex.pm/docs/publish), the package can be installed 8 + by adding `atex` to your list of dependencies in `mix.exs`: 9 + 10 + ```elixir 11 + def deps do 12 + [ 13 + {:atex, "~> 0.1.0"} 14 + ] 15 + end 16 + ``` 17 + 18 + Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc) 19 + and published on [HexDocs](https://hexdocs.pm). Once published, the docs can 20 + be found at <https://hexdocs.pm/atex>. 21 +
+27
flake.lock
··· 1 + { 2 + "nodes": { 3 + "nixpkgs": { 4 + "locked": { 5 + "lastModified": 1749143949, 6 + "narHash": "sha256-QuUtALJpVrPnPeozlUG/y+oIMSLdptHxb3GK6cpSVhA=", 7 + "owner": "nixos", 8 + "repo": "nixpkgs", 9 + "rev": "d3d2d80a2191a73d1e86456a751b83aa13085d7d", 10 + "type": "github" 11 + }, 12 + "original": { 13 + "owner": "nixos", 14 + "ref": "nixos-unstable", 15 + "repo": "nixpkgs", 16 + "type": "github" 17 + } 18 + }, 19 + "root": { 20 + "inputs": { 21 + "nixpkgs": "nixpkgs" 22 + } 23 + } 24 + }, 25 + "root": "root", 26 + "version": 7 27 + }
+21
flake.nix
··· 1 + { 2 + inputs = { 3 + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; 4 + }; 5 + 6 + outputs = {nixpkgs, ...}: let 7 + forSystems = fn: 8 + nixpkgs.lib.genAttrs [ 9 + "aarch64-linux" 10 + "aarch64-darwin" 11 + "x86_64-darwin" 12 + "x86_64-linux" 13 + ] (system: fn nixpkgs.legacyPackages.${system}); 14 + defaultForSystems = fn: forSystems (pkgs: {default = fn pkgs;}); 15 + in { 16 + devShells = defaultForSystems (pkgs: 17 + pkgs.mkShell { 18 + nativeBuildInputs = with pkgs; [elixir erlang]; 19 + }); 20 + }; 21 + }
+2
lib/atex.ex
··· 1 + defmodule Atex do 2 + end
+26
mix.exs
··· 1 + defmodule Atex.MixProject do 2 + use Mix.Project 3 + 4 + def project do 5 + [ 6 + app: :atex, 7 + version: "0.1.0", 8 + elixir: "~> 1.18", 9 + start_permanent: Mix.env() == :prod, 10 + deps: deps() 11 + ] 12 + end 13 + 14 + def application do 15 + [ 16 + extra_applications: [:logger] 17 + ] 18 + end 19 + 20 + # Run "mix help deps" to learn about dependencies. 21 + defp deps do 22 + [ 23 + {:typedstruct, "~> 0.5"} 24 + ] 25 + end 26 + end
+3
mix.lock
··· 1 + %{ 2 + "typedstruct": {:hex, :typedstruct, "0.5.3", "d68ae424251a41b81a8d0c485328ab48edbd3858f3565bbdac21b43c056fc9b4", [:make, :mix], [], "hexpm", "b53b8186701417c0b2782bf02a2db5524f879b8488f91d1d83b97d84c2943432"}, 3 + }
+8
test/atex_test.exs
··· 1 + defmodule AtexTest do 2 + use ExUnit.Case 3 + doctest Atex 4 + 5 + test "greets the world" do 6 + assert Atex.hello() == :world 7 + end 8 + end
+1
test/test_helper.exs
··· 1 + ExUnit.start()