Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

License

SwissArmyHammer is distributed under the MIT License, a permissive open-source license that allows for commercial use, modification, distribution, and private use.

MIT License

MIT License

Copyright (c) 2024 SwissArmyHammer Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

What This Means

You CAN:

Commercial Use - Use SwissArmyHammer in commercial projects and products

Modify - Make changes to the source code for your needs

Distribute - Share the software with others

Private Use - Use for private purposes without sharing modifications

Sublicense - Include SwissArmyHammer in software with different licensing

You MUST:

📋 Include License - Include the copyright notice and license in copies

📋 Include Copyright - Keep the copyright notice intact

You CANNOT:

Hold Liable - Hold contributors liable for damages

Use Trademark - Use SwissArmyHammer name/logo without permission

Dependencies

SwissArmyHammer uses various open-source dependencies, each with their own licenses:

Core Dependencies

  • tokio (MIT) - Async runtime
  • serde (MIT/Apache-2.0) - Serialization framework
  • clap (MIT/Apache-2.0) - Command line parsing
  • liquid (MIT/Apache-2.0) - Template engine
  • anyhow (MIT/Apache-2.0) - Error handling

Full Dependency List

To view all dependencies and their licenses:

cargo license

Or check the Cargo.lock file for a complete list.

Contributing

By contributing to SwissArmyHammer, you agree that your contributions will be licensed under the MIT License. See Contributing for more details.

Prompt Content

Your Prompts

Prompts you create and store in SwissArmyHammer remain your intellectual property. The MIT License applies only to the SwissArmyHammer software itself, not to the content you create with it.

Built-in Prompts

Built-in prompts distributed with SwissArmyHammer are covered by the same MIT License as the software.

Third-Party Content

Some documentation and examples may include references to third-party services or tools. These references are for illustration only and don’t imply endorsement. Third-party tools and services are subject to their own licenses and terms.

Warranty Disclaimer

SwissArmyHammer is provided “as is” without warranty of any kind. The full disclaimer is included in the license text above. In particular:

  • No warranty of merchantability
  • No warranty of fitness for a particular purpose
  • No warranty against defects
  • Use at your own risk

Questions

If you have questions about the license:

  1. Read the MIT License FAQ
  2. Consult with a legal professional for specific situations
  3. Open an issue on GitHub for clarification about SwissArmyHammer’s use of the license

License Changes

The project maintainers reserve the right to release future versions under a different license. However:

  • Existing versions remain under their released license
  • Contributors will be notified of proposed changes
  • Significant changes require community discussion

Compliance

To comply with the MIT License when using SwissArmyHammer:

  1. In Source Distribution: Include the LICENSE file
  2. In Binary Distribution: Include license text in documentation
  3. In Modified Versions: Note your changes but keep original copyright
  4. In Products: Include attribution in your credits/about section

Example attribution:

This product includes software developed by the SwissArmyHammer project
(https://github.com/wballard/swissarmyhammer), licensed under the MIT License.