Giter Site home page Giter Site logo

consolehelpers's Introduction

I write quite a few console apps: utilities (of course), one-off tools, 
proof-of-concept apps, speed-tests of isolated algorithms, whatever.  
(Powershell and xUnit have whittled away at most of my needs for console apps,
but occassionally nothing else will do.)

I find myself slapping together, over and over again, snippets to do
the same basic functions for these apps.  Thought it was time to collect
these in one place.

Mostly, though, it's just an excuse to play with 'git submodule' :-)

The sub-directories contain the following simple snippets:

	Arguments	-- A ProgramArguments implementation allowing
	         	   defining and parsing of bool and name/value
	         	   command-line arguments, including basic
	         	   help-text formatting about the args.

	         	   The expected use is to sub-class ProgramArguments
	         	   so you can add strongly-typed, intellisense'd
	         	   property-names atop the base-class primitives.

	Std Pipes	-- Functions that ease the choice of file- or 
	        	   stdin/stdout text streams, including
	         	   encoding- and LF/CRLF-detection, 
	         	   determining if newline is needed prior to append,
	         	   and a simplistic IEnumerable<string> atop ReadLine.

	Logging   	-- An ExceptionHandler that walks the InnerException
	          	   chain for you, emits the stacktrace of the outer-most throw,
	        	   formats it for display or logging.

	Csv        	-- Basic enumeration of lines from delimited files.

	

These were all cobbled together to give minimal functionality to 
(predominantly throw-away) apps, so they've no polish whatsoever,
just quick-n'-dirty scaffolding for common needs. 

consolehelpers's People

Stargazers

Yashar Bahman avatar Norm Bryar avatar

Watchers

Norm Bryar avatar

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.