scala-xdg-basedir

freedesktop.org for Scala

License

License

Categories

Categories

Scala Languages
GroupId

GroupId

com.github.wookietreiber
ArtifactId

ArtifactId

scala-xdg-basedir_sjs0.6_2.12
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

scala-xdg-basedir
freedesktop.org for Scala
Project URL

Project URL

https://github.com/wookietreiber/scala-xdg
Project Organization

Project Organization

com.github.wookietreiber
Source Code Management

Source Code Management

https://github.com/wookietreiber/scala-xdg

Download scala-xdg-basedir_sjs0.6_2.12

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.wookietreiber/scala-xdg-basedir_sjs0.6_2.12/ -->
<dependency>
    <groupId>com.github.wookietreiber</groupId>
    <artifactId>scala-xdg-basedir_sjs0.6_2.12</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.wookietreiber/scala-xdg-basedir_sjs0.6_2.12/
implementation 'com.github.wookietreiber:scala-xdg-basedir_sjs0.6_2.12:0.1.0'
// https://jarcasting.com/artifacts/com.github.wookietreiber/scala-xdg-basedir_sjs0.6_2.12/
implementation ("com.github.wookietreiber:scala-xdg-basedir_sjs0.6_2.12:0.1.0")
'com.github.wookietreiber:scala-xdg-basedir_sjs0.6_2.12:jar:0.1.0'
<dependency org="com.github.wookietreiber" name="scala-xdg-basedir_sjs0.6_2.12" rev="0.1.0">
  <artifact name="scala-xdg-basedir_sjs0.6_2.12" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.wookietreiber', module='scala-xdg-basedir_sjs0.6_2.12', version='0.1.0')
)
libraryDependencies += "com.github.wookietreiber" % "scala-xdg-basedir_sjs0.6_2.12" % "0.1.0"
[com.github.wookietreiber/scala-xdg-basedir_sjs0.6_2.12 "0.1.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.12.5
org.scala-js : scalajs-library_2.12 jar 0.6.22

test (1)

Group / Artifact Type Version
org.scala-js : scalajs-test-interface_2.12 jar 0.6.22

Project Modules

There are no modules declared in this project.

freedesktop.org for Scala

Build Status Codacy Badge

Libraries for Scala to access the standards defined by freedesktop.org (formerly X Desktop Group).

Base Directory Specification

Latest version Scaladoc

The basedir sub-project contains an implementation of the Base Directory Specification.

import org.freedesktop._

// returns path in user config directory
// ~/.config/git/config
val a: String = basedir.config("git", "config")

// creates and returns in user config directory
// ~/.config/app.conf
val b: String = basedir.config.create("app.conf")

// locates first existing in all (including global) base directories
// could be ~/.config/awesome/rc.lua
// or could be /etc/xdg/awesome/rc.lua if user does not have one
val c: Option[String] = basedir.config.locate("awesome", "rc.lua")

// same works with cache, data and runtime base directories

Versions

Version
0.1.0