Giter VIP home page Giter VIP logo

addlinenum's Introduction

addlinenum

行先頭に行番号をつける CLI アプリ

Usage

以下の URL から実行ファイルを取得できます. 対話形式, コマンドライン形式, の 二通りで起動できます.

https://github.com/CaseyNelson314/addlinenum/releases/download/v1.0.6/addlinenum.exe

対話形式

Animationsd

実行ファイルをダブルクリックすると対話形式で起動できます. 起動するといくつか入力事項を求められます.

  1. source file path >

    行番号を付与する基となるファイルの絶対パスを指定します.

  2. output stream: console[c] / file[f] (c) >

    行番号を付与したデータの出力先を指定します. 何も入力せず Enter を押した場合コンソールへ出力します.

    c: コンソール画面

    f: ファイル

  3. file name (output.txt) >

    2 でファイルを選択した場合, 出力ファイル名を指定します. 何も入力せず Enter を押した場合 output.txt になります. 出力先はソースファイルのあるフォルダになります.

コマンドラインから

実行ファイルがあるディレクトリへ移動

cd 実行ファイルがあるディレクトリ

実行ファイルの第一引数にファイルパスを渡すと, 行番号を付与したファイルの中身が出力されます.

.\addlinenum.exe main.cpp

image

パイプラインを使うと結果をファイルに書き込めます.

.\addlinenum.exe main.cpp > output.txt
cat .\output.txt
0:  #include <iostream>
1:
2:  int main() {
3:      std::cout << "Hello, World!" << std::endl;
4:      return 0;
5:  }

引数を渡さない場合, 対話形式で起動されます.

.\addlinenum.exe
source file path >

実行ファイルがあるディレクトリを Path 環境変数に追加すると, いつでもどこでも実行ファイルを呼び出せます.

addlinenum main.cpp

addlinenum's People

Contributors

caseynelson314 avatar

Watchers

 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.