fats 0.0.4

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global fats --version 0.0.4                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local fats --version 0.0.4                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=fats&version=0.0.4                
nuke :add-package fats --version 0.0.4                

fats

fats is a cat-like dotnet tool to quickly dump multiple F# ranges from multiple files to stdout.
Please note: F# ranges use 1-based lines and 0-based columns. Given a single path to a .sarif file, fats will dump the regions from the sarif results.

Installation

dotnet tool install --global fats

Usage

fats <path> [<path> ...]

A single path argument consists of a file path followed by a colon and a range in parentheses.
Two types of ranges are currently supported:

  • (startLine-endLine) - a range of lines
  • (startLine,startColumn-endLine,endColumn) - a range of characters
  • (line,column) - a range of a single line

Between start and end line/column numbers there can be a single dash or multiple dashes.

Examples:

> fats "./src/Fats/Program.fs:(1,0-1,4)" "./src/Fats/Program.fs:(3,0--4,0)" "./src/Fats/Program.fs:(5,0--5,10)"
name
module Model =

    type L
> fats "./src/Fats/Program.fs:(1-3)" # lines 1 to 3
namespace Fats

module Model =
> fats "./src/Fats/Program.fs:(1,3)" # line containing the position
namespace Fats
> fats ./testbed.sarif
GRA-STRING-002: The usage of String.StartsWith with a single string argument is discouraged. Signal your intention explicitly by calling an overload.
C:/Users/schae/src/testbed/Library.fs(6,11)
        if name.StartsWith("world") then
---
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
0.0.7 290 11/23/2023
0.0.6 350 10/28/2023
0.0.5 290 10/22/2023
0.0.4 315 10/17/2023
0.0.3 340 10/14/2023
0.0.2 298 10/10/2023
0.0.1 342 10/8/2023

### Added

* * Support for Sarif reports