Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/WarHub/wham
WarHub.ArmouryModel - C# cornerstone library for wargame datafile tools
https://github.com/WarHub/wham
Last synced: 29 days ago
JSON representation
WarHub.ArmouryModel - C# cornerstone library for wargame datafile tools
- Host: GitHub
- URL: https://github.com/WarHub/wham
- Owner: WarHub
- License: mit
- Created: 2016-02-19T22:29:17.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2024-04-29T02:39:34.000Z (8 months ago)
- Last Synced: 2024-11-06T21:07:23.346Z (about 1 month ago)
- Language: C#
- Homepage:
- Size: 2.24 MB
- Stars: 21
- Watchers: 7
- Forks: 4
- Open Issues: 34
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- csharp-source-generators - WarHub/wham - ![stars](https://img.shields.io/github/stars/WarHub/wham?style=flat-square&cacheSeconds=604800) ![last commit](https://img.shields.io/github/last-commit/WarHub/wham?style=flat-square&cacheSeconds=86400) generates code for immutable tree object graph based on red-green node approach used in Roslyn; generates custom XmlSerializer that supports C#9 records and ImmutableArray. (Projects using custom Source Generators "internally" / Other)
README
# wham
[![NuGet packages](https://img.shields.io/nuget/v/WarHub.ArmouryModel.Source.svg?logo=nuget)](https://www.nuget.org/profiles/warhub)
[![CI GitHub Action](https://github.com/WarHub/wham/workflows/CI/badge.svg)](https://github.com/WarHub/wham/actions?query=workflow%3ACI+branch%3Amain)
[![License](https://img.shields.io/github/license/WarHub/wham.svg)](https://github.com/WarHub/wham/blob/main/LICENSE.md)> `WarHub.ArmouryModel` library and `wham` tool
Foundational .NET library for wargame datafile tools, written in C#.
## Overview
This is the home of the `WarHub.ArmouryModel` library handling wargame roster and data files.
It consists of:* `wham` - a CLI tool (Command Line) used to manage, convert and publish datafiles,
distributed as .NET Global Tool (.NET SDK v7+ required)
* `WarHub.ArmouryModel.Source` library provides API to manage and interact
with wargaming data files (game systems, catalogues) and rosters.
* `WarHub.ArmouryModel.Source.BattleScribe` provides convenient methods to load and save
BattleScribe XML datafiles.
* `WarHub.ArmouryModel.ProjectModel` library provides API to operate on wham workspaces (abstraction)
and their configuration (`.whamproj` configuration files).
* `WarHub.ArmouryModel.Workspaces.BattleScribe` implements project model for BattleScribe format.
* `WarHub.ArmouryModel.Workspaces.Gitree` implements project model for *gitree* where
directory and file structure is a part of datafile shape, building datafile from massive amounts
of tiny files. It's mostly designed to work well with VCS (Version Control Systems) such as **git**.All libraries, unless otherwise specifed, target `.NET 6`.
There are also test projects and `WarHub.ArmouryModel.Source.CodeGeneration` project which contains
code generator used to build `.Source` library. This code generator uses C# Source Generators.## Usage
### `wham` installation
To install `wham` command line tool:
1. please install [`.NET SDK` v7](https://www.microsoft.com/net/download)
for your platform.
1. In your shell/command line run `dotnet tool install wham -g`
1. You can check if the tool is available: `wham --version` should show what version exactly is running.This will install preview of `wham` CLI tool in your user-space (not system global),
and so it doesn't require root/admin permissions. (Although installation of .NET SDK can).### `wham` features
* converts BattleScribe workspace (xml files: `.cat`/`.catz`/`.gst`/`.gstz`)
into *gitree* workspace (mutliple small files in directory trees) that
behaves with **git** well.
* publishes BattleScribe format distribution files:
* `.bsr` repository distribution package - zip archive containing datafiles (`.cat` and `.gst`)
and DataIndex `index.xml` file.
* `index.bsi` which is DataIndex `index.xml`-containing zip archive.
* `index.xml` DataIndex.
* `.cat`/`.gst` datafiles
* `.catz`/`.gstz` zipped datafiles### `wham` usage
You can always run `wham -?` or `wham -h` or `wham [action] -?` to get help about the tool/action.
## Development
The development branch is the `main` branch. Stable releases are marked via `vX.Y.Z` tags.
This project uses `Nerdbank.GitVersioning` package that automatically generates version numbers
for assemblies and packages from git tree. It won't work if the git clone is *shallow* or otherwise
incomplete.## Credits
The library is MIT licensed (license in repo root).
Created by Amadeusz Sadowski ([**@amis92**](https://github.com/amis92)).
[**BattleScribe**](https://battlescribe.net/) name is used without permission under fair-use laws.