rcversion

command module
v0.0.0-...-b5a19fa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 13 Imported by: 0

README

rcversion

A simple command line utility to read and change the version in MSVC resource script file (.rc).

Usage

Reading the version inside a resource file:

rcversion.exe read -p [resource file path]

Example:
rcversion.exe read -p c:\solution\project\procject.rc

Changing the version inside a resource file:

rcversion.exe change -p [resource file path] -v [N.N.N.N]

Example:
rcversion.exe change -p c:\solution\project\procject.rc -v 1.0.0.1

You can also change multiple files recursively by specifying the project's root directory:

rcversion.exe change -p [directory path] -v [N.N.N.N]

Example:
rcversion.exe change -p c:\solution -v 1.0.0.1

Install

Install the Go programming language and compile the source files.

Notes

TO DO:

  • Restrict the version to only accept N.N.N.N format

This project is an example (to me) on how to use the cobra library and to recursively walk into a directory and filter files.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL