• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

desktop/dugite: Elegant bindings for working with Git in your Node applications

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

desktop/dugite

开源软件地址:

https://github.com/desktop/dugite

开源编程语言:

TypeScript 88.1%

开源软件介绍:

Dugite - JS bindings for Git

This project provides bindings for Node applications to interact with Git repositories, using the same command line interface that core Git offers. Development is primarily driven by Git-related projects at GitHub such as GitHub Desktop.

The source is in TypeScript, but can be consumed by any JavaScript application.

Getting Started

Add it to your project:

> npm install dugite

Then reference it in your application:

import { GitProcess, GitError, IGitResult } from 'dugite'

const pathToRepository = 'C:/path/to/git/repository/'

const result = await GitProcess.exec([ 'status' ], pathToRepository)
if (result.exitCode === 0) {
  const output = result.stdout
  // do some things with the output
} else {
  const error = result.stderr
  // error handling
}

Features

  • make it easy to work with Git repositories
  • use the same commands as you would in a shell
  • access to the full set of commands, options and formatting that Git core uses
  • access to the latest features of Git

Supported Platforms

  • Windows 7 and later
  • macOS 10.9 and up
  • Linux (tested on Ubuntu Precise/Trusty and Fedora 24)

Status

This project is under active development for Git-related projects at GitHub. This will stabilize as this library gets more usage in production, and is open to external contributions that align with the project's goals.

If you are interested in getting involved with this project, refer to the CONTRIBUTING.md file for instructions and the documentation sections for more information about the project.

Roadmap

As this is under active development, the roadmap is also subject to change. Some ideas:

  • authentication support in-the-box
  • make environment setup easier to override
  • API additions for common tasks such as parsing output
  • error handling improvements



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
D-S-Hub/git-practice: このリポジトリはGit動画講座用です.发布时间:2022-06-11
下一篇:
mickael-kerjean/filestash: 发布时间:2022-06-11
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap