npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

redmine-time-logger

v1.0.6

Published

A command line tool to log time entries in Redmine.

Downloads

9

Readme

Redmine Time Logger

Redmine Time Logger 是一个命令行工具,用于通过 Redmine 的 REST API 为指定任务创建工时记录。该工具支持为一段时间内的每一天批量记录工时,并允许用户自定义工时数量和添加工作注释。

特性

  • API 密钥和服务器 URL 配置: 通过简单的配置文件设置和存储您的 Redmine API 密钥和服务器地址。
  • 日期范围记录: 支持通过命令行参数指定日期范围(如从五天前到今天)。
  • 自定义工时数: 默认每天记录8小时工时,但用户可以自定义每天的工时数。
  • 添加注释: 支持为工时记录添加自定义注释。

安装

首先,确保您已经安装了 Node.js 和 npm。然后,您可以使用 npm 将 Redmine Time Logger 安装为全局包:

npm install -g redmine-time-logger

配置

支持在第一次执行时使用交互式命令行写入配置,也可以在您的个人目录下手动创建一个名为 .redmine-config.json 的文件,并添加以下内容:

{
  "apiKey": "your-redmine-api-key",
  "apiUrl": "https://your-redmine-url.com"
}

使用

使用 Redmine Time Logger 记录工时非常简单。以下是一些示例命令:

# 为任务 #1234 记录今天 8 小时工时
redmine-hours 1234 -d 0 -h 8

# 为任务 #1234 记录从五天前到今天的每天 8 小时工时
redmine-hours 1234 -d -5 -d 0 -h 8

# 为任务 #1234 记录今天 10 小时工时,并添加注释
redmine-hours 1234 -d 0 -h 10 -c "Completed task XYZ"