DoNotDisturbPlugin

0.0.5

A plugin for your Xcode project that stops you from working outside work hours
icanzilb/DoNilDisturbPlugin

What's New

Tests

2022-08-29T17:10:42Z

Includes fixes and tests; thanks to @designatednerd

DoNilDisturb Swift Plugin

Use Xcode 14+ to make use of this amazing and novel Swift plugin in your package.

The plugin stops you from working on your 9-5 project outside of 9-5 hours:

Project failing to compile with a message that do not disturb is on

Add this to your dependencies in your Package.swift:

.package(url: "https://github.com/icanzilb/DoNilDisturbPlugin.git", from: "0.0.2"),

And then, add the plugin in your target definition(still in Package.swift:

.target(
  name: "MyTarget",
  plugins: [
    .plugin(name: "DoNilDisturbPlugin", package: "DoNilDisturbPlugin")
  ]
)

That's all. Your target will fail to build outside of working hours.

Enjoy your time off work.

Public Holidays support

Grab an .ics file containing the public holidays for your locality. For example, grab this one for Spanish holidays: https://www.officeholidays.com/ics-clean/spain

Save the calendar file under your project's root directory in a sub-directory called .config/DoNilDisturb

The plugin will now respect your holidays:

Error message in Xcode failing to build because it's a public holiday

License

MIT, of course.

Description

  • Swift Tools 5.7.0
View More Packages from this Author

Dependencies

Last updated: Sun Oct 20 2024 19:01:49 GMT-0900 (Hawaii-Aleutian Daylight Time)