Skip to content
/ xlings Public

一个跨平台的开发者工具 - 包管理器 + 多版本管理 + 项目搭建 🛠️ A cross-platform developer tool for package management, version control, and project scaffolding

License

Notifications You must be signed in to change notification settings

d2learn/xlings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xlings Test - CI

License Bilibili YouTube
一个跨平台的开发者工具 - 包管理器 + 多版本管理 + 项目搭建工具

最近动态

  • 优化命令行使用体验: 常用命令支持xlings调用, 高级功能使用子命令xim/xvm/d2x - PR - 2025/4/15
  • d2x: 重构公开课/教程项目相关命令, 形成独立的d2x工具 - PR - 2025/2/19
  • xim: 增加archlinux上aur的支持 - PR - 2025/1/10
  • xvm: 增加版本管理模块 - 文章 / PR - 2025/1/1
  • xpkg增加自动匹配github上release的url功能 - 文章 - 2024/12/30
  • xlings跨平台短命令 - 视频 - 2024/12/29
  • xim模块: 重构&分离框架代码和包文件 - 包索引仓库 / PR -- 2024/12/16
  • xim功能更新介绍 - 文章 / 视频
  • 增加DotNet/C#和java/jdk8环境的支持
  • 增加windows模块和安装器自动加载功能, 以及WSL和ProjectGraph的安装支持 - 详情
  • 软件安装模块增加deps依赖配置和"递归"安装实现
  • 初步xdeps项目依赖功能实现和配置文件格式初步确定
  • 更多动态和讨论 -> More

Star History Chart

快速安装

在命令行窗口执行一键安装命令

Linux

curl -fsSL https://d2learn.org/xlings-install.sh | bash

or

wget https://d2learn.org/xlings-install.sh -O - | bash

Windows - PowerShell

Invoke-Expression (Invoke-Webrequest 'https://d2learn.org/xlings-install.ps1.txt' -UseBasicParsing).Content

工具用法简介

多版本软件安装及管理

支持多版本共存的包管理 - 不仅支持软件/工具安装、还支持环境配置

# 配置环境
xlings install c
xlings install python
# 安装工具
xlings install devcpp
xlings install vscode

# 安装指定版本package@version和版本切换
xlings install [email protected]
xlings use vscode 1.93.1

# 卸载指定版本
xlings remove [email protected]

高级用法见 -> xim-readme / xvm-readme

项目搭建

搭建交互式的公开课或教程项目, 支持环境自动配置、电子书、练习代码自动检测...

示例项目: d2ds | 动手学数据结构

# 创建项目模板 - hello教程项目
xlings new hello
cd hello
# 安装项目依赖
xlings install
# 启动自动代码检测(编译器驱动开发模式)
xlings checker

高级用法见 -> d2x-readme

项目依赖管理

在配置文件所在目录运行install命令安装项目依赖(config.xlings配置文件一般放到项目根目录)

config.xlings配置文件示例

xname = "ProjectName"
xim = {
    cpp = "",
    python = "3.12",
    vs = "2022",
    -- postprocess cmds
    xppcmds = {
        "echo hello xlings",
    }
}

一键安装项目依赖

xlings install

社区 & 交流

相关链接

  • 主页 : 工具动态和核心功能展示
  • xim-pkgindex : xlings安装管理模块(XIM)的包索引仓库
  • xmake: 为xlings提供基础环境

About

一个跨平台的开发者工具 - 包管理器 + 多版本管理 + 项目搭建 🛠️ A cross-platform developer tool for package management, version control, and project scaffolding

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •