<commit_before># versioned (Version Editor) - a version number tool

versioned is a command line tool to work with version numbers 
on the command line. Features include

- check if version number matches the version number format
- removal of "-SNAPSHOT" suffix
- calculation of next release or development versions.

## Version number formats

versioned supports semantic versions of the form 1.2.3-SNAPSHOT for now. This
format is known from maven (a popular java build tool) and is called 'mvn'. The
format option `-f mvn` can be omitted as for now `mvn` is the default.

### Test if version does not match format
```
versioned -f mvn -c isVersion foo
false
```

### Test if version matches format
```
versioned -f mvn -c isVersion 1
true
```

### Test if version is a development version
```
versioned -f mvn -c isSnapshot 1-SNAPSHOT
true
```
### Test if version is a release version
```
versioned -f mvn -c isRelease 1-SNAPSHOT
false
```

### Calculate next release version based on development version
```
versioned -f mvn -c nextRelease 1.2.3-SNAPSHOT
1.2.3
```

### Calculate next development version based on release version
```
versioned -f mvn -c nextSnapshot 1.2.3
1.2.4-SNAPSHOT
```

## License

MIT License

[License]{LICENSE.txt}<commit_msg>License link fix<commit_after># versioned (Version Editor) - a version number tool

versioned is a command line tool to work with version numbers 
on the command line. Features include

- check if version number matches the version number format
- removal of "-SNAPSHOT" suffix
- calculation of next release or development versions.

## Version number formats

versioned supports semantic versions of the form 1.2.3-SNAPSHOT for now. This
format is known from maven (a popular java build tool) and is called 'mvn'. The
format option `-f mvn` can be omitted as for now `mvn` is the default.

### Test if version does not match format
```
versioned -f mvn -c isVersion foo
false
```

### Test if version matches format
```
versioned -f mvn -c isVersion 1
true
```

### Test if version is a development version
```
versioned -f mvn -c isSnapshot 1-SNAPSHOT
true
```
### Test if version is a release version
```
versioned -f mvn -c isRelease 1-SNAPSHOT
false
```

### Calculate next release version based on development version
```
versioned -f mvn -c nextRelease 1.2.3-SNAPSHOT
1.2.3
```

### Calculate next development version based on release version
```
versioned -f mvn -c nextSnapshot 1.2.3
1.2.4-SNAPSHOT
```

## License

MIT License

[License](LICENSE.txt)
{'fraction_non_alphanumeric': 0.09296781883194279, 'fraction_numerical': 0.014302741358760428, 'mean_word_length': 3.986138613861386, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5841147', 'n_tokens_mistral': 803, 'n_tokens_neox': 755, 'n_words': 353}