Simple package version bumper written in Go Programming Language for Cisco NSO packages.
go build
ncs-pkg-bumper -p test-package/package-meta-data.xml -m minor
OR
# looks for 'package-meta-data.xml' in specified directory
ncs-pkg-bumper -p test-package -m minor
OR
# looks for 'package-meta-data.xml' in current directory
ncs-pkg-bumper -m minor
Command
ncs-pkg-bumper -p test-package/package-meta-data.xml -m minor
Console output
--- Package: test-package ---
Current version: 1.0.0
New version: 1.1.0
Diff
<ncs-package xmlns="http://tail-f.com/ns/ncs-packages">
<name>test-package</name>
- <package-version>1.0.0</package-version>
+ <package-version>1.1.0</package-version>
<description>ncs-pkg-bumper test package</description>
<ncs-min-version>6.1</ncs-min-version>
<!-- Some comment -->
<!-- same package, multiple services, data providers etc -->
<component>
<name>MyComponent1</name>
<callback>
<java-class-name>com.example.test.testClass</java-class-name>
</callback>
</component>
<component>
<name>test</name>
<application>
<python-class-name>test.Main</python-class-name>
</application>
</component>
</ncs-package>