Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Ada 2012 library implementing the XDG Base Directory Specification

License

Notifications You must be signed in to change notification settings

onox/xdg-base-dir

Repository files navigation

Build status License Alire crate GitHub release Gitter chat

xdg-base-dir

Ada 2012 library implementing XDG Base Directory Specification.

Usage

with Ada.Text_IO;

with XDG_Base_Dir;

procedure Example is
   use XDG_Base_Dir;
begin
   Ada.Text_IO.Put_Line ("Config:     " & XDG_Base_Dir.Config);
   Ada.Text_IO.Put_Line ("Cache:      " & XDG_Base_Dir.Cache);
   Ada.Text_IO.Put_Line ("Data:       " & XDG_Base_Dir.Data);
   Ada.Text_IO.Put_Line ("State:      " & XDG_Base_Dir.State);
   Ada.Text_IO.Put_Line ("Runtime:    " & XDG_Base_Dir.Runtime);
   Ada.Text_IO.Put_Line ("Executable: " & XDG_Base_Dir.Executable);

   Ada.Text_IO.Put_Line ("Data dirs:");
   for Path of XDG_Base_Dir.Data_Dirs loop
      Ada.Text_IO.Put_Line ("- " & (+Path));
   end loop;

   Ada.Text_IO.Put_Line ("Config dirs:");
   for Path of XDG_Base_Dir.Config_Dirs loop
      Ada.Text_IO.Put_Line ("- " & (+Path));
   end loop;
end Example;

Dependencies

In order to build the library, you need to have:

  • An Ada 2012 compiler

  • Alire package manager

Contributing

Please read the contributing guidelines before opening issues or pull requests.

License

These bindings are licensed under the Apache License 2.0. The first line of each Ada file should contain an SPDX license identifier tag that refers to this license:

SPDX-License-Identifier: Apache-2.0

About

Ada 2012 library implementing the XDG Base Directory Specification

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages