Giter VIP home page Giter VIP logo

fbrary's People

Contributors

b0wter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fbrary's Issues

Allow more flexible formatting

%artist% -> "<no artist>"
?artist? -> ""

Maybe make something more complex like:

?(%artist%)?

To make the brackets only appear if the artist is set.

Consolidate field names

Field names are used in different ways across the entire application. There should be a single source of truth for that and I way to parameterize this.

If only a single format argument is given and it is ignored the app crashes

PS C:\Users\b0wter\Desktop\fbrary> .\Fbrary.exe -l .\test.json list --table "%rating_symbols%"
The following format identifiers are unknown and will be skipped: %rating_symbols%
Unhandled exception. System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at b0wter.Fbrary.Formatter.Table.columnsToRows(FSharpList`1 columns)
   at b0wter.Fbrary.Formatter.Table.apply(Int32 maxColumnWidth, String tableFormat, FSharpList`1 books)
   at [email protected](FSharpOption`1 _arg1)
   at System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr callersRetAddrSlot, IntPtr callTarget, IntPtr retVal)
   at b0wter.Fbrary.Program.list(String libraryFile, ListConfig listConfig)
   at b0wter.Fbrary.Program.main(String[] argv)```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.