GitXplorerGitXplorer
w

whoami.swift

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
9191f88e6820c02cfd171b5d232084033b432ca2

swiftlint

wwmorgue committed 3 years ago
Unverified
2f9dd611a13ecf2f4827cea3f2197a5ea2b7f0dd

code improvment

wwmorgue committed 3 years ago
Unverified
995cea11d7d36ee77099294410b60ea92d7b771c

resolve git staged

wwmorgue committed 3 years ago
Unverified
e3afa173630612abbbd1f3a89f1509cfca105531

initial version 0.0.0

wwmorgue committed 3 years ago

README

The README file for this repository.

whoami.swift

Retrieve the current user and environment through simple functions.

This package can:

  • [x] Get the user's full name
  • [x] Get the user's username
  • [x] Get the user's preferred language(s)
  • [x] Get the devices's hostname
  • [ ] Some unimplemented TODO

Example

Add this package to current project and import.

import Whoami

func main() {
    let host = Whoami.hostName
    print("Current host: \(host)")
}