Skip to content

Simple package version bumper written in Go for Cisco NSO packages.

License

Notifications You must be signed in to change notification settings

JHolcman-T/ncs-pkg-bumper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ncs-pkg-bumper

Simple package version bumper written in Go Programming Language for Cisco NSO packages.

Buid

go build

Usage

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

Example

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>