{"id":15293181,"url":"https://github.com/wiremoons/dav","last_synced_at":"2025-03-24T12:40:29.091Z","repository":{"id":65813229,"uuid":"600429139","full_name":"wiremoons/dav","owner":"wiremoons","description":"Dart Application Version (DAV) - simple application version display for Dart CLI programs.","archived":false,"fork":false,"pushed_at":"2023-07-11T20:52:53.000Z","size":324,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-29T17:44:40.189Z","etag":null,"topics":["cli","command-line","dart","dart-library","dart-package","dartlang","version"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wiremoons.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-11T13:20:27.000Z","updated_at":"2024-09-30T09:51:34.000Z","dependencies_parsed_at":"2024-10-14T21:41:29.109Z","dependency_job_id":null,"html_url":"https://github.com/wiremoons/dav","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2Fdav","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2Fdav/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2Fdav/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2Fdav/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wiremoons","download_url":"https://codeload.github.com/wiremoons/dav/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245273133,"owners_count":20588527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","command-line","dart","dart-library","dart-package","dartlang","version"],"created_at":"2024-09-30T16:40:10.959Z","updated_at":"2025-03-24T12:40:29.040Z","avatar_url":"https://github.com/wiremoons.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![pub package](https://img.shields.io/pub/v/dav.svg)](https://pub.dev/packages/dav)\n[![package publisher](https://img.shields.io/pub/publisher/dav.svg)](https://pub.dev/packages/dav/publisher)\n\nDart package for command line applications to create an version display. \n\n## Features\n\nThe package displays a summary of version data for a command line application. The version data it\nprovides includes:\n\n- the stated version number for your application;\n- the version of the operating system the application is being run on;\n- the number of CPUs available in the machine the application is being run on;\n- the system locale for the machine being run on;\n- the name of the local computer the application is being run on.\n\nDifferent data is displayed to distiguish a **AOT complied application** from one runing as a **Dart script**. The \ndisplayed differences includes:\n\n- *Last time the script was modified* **vs** *when the applcation was built (ie AOT compiled)*;\n- *Version of Dart being used to execute the script* **vs** *Version of Dart the application was AOT complied with*;\n\nSimple usage provides two options for application version output:\n\n1. Use the `display()` call to output the version data to *stdout* for display on the command line;\n2. Use the `asString()` call to get a string copy of the version data - in case further manipluation is needed prior to output.\n\nEasy to use, with no addtional external dependencies. Only uses the Dart SDK builtin module: `dart:io`.\n\n## Screen Shots\n\nBelow are two screen example outputs:\n \n![Dart script version output](https://raw.githubusercontent.com/wiremoons/dav/main/images/dart-script-version.png)\n\n![Dart AOT exe version output](https://raw.githubusercontent.com/wiremoons/dav/main/images/dart-aot-exe-version.png)\n\n\n## Getting started\n\n1. Add this package to your package's `pubspec.yaml` file as described on the installation tab:\n2. Import the library:\n\n```dart  \nimport 'package:dav/dav.dart';\n```\n\n## Usage\n\nThe following usage is included in the `/example` folder as well, which can be run with: `dart run example/dav_example.dart` \n\n```dart\nimport 'package:dav/dav.dart';\n\nvoid main() {\n  // Create a new object named 'version' from the class 'Dav' setting this applications version to '0.3.1':\n  final version = Dav(appVersion: \"0.3.1\");\n  // display the version informaiton to the screen (stdout)\n  version.display();\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiremoons%2Fdav","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwiremoons%2Fdav","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiremoons%2Fdav/lists"}