From 0f97a00f683f1e79f7e46c1191680f88875fd6f5 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Sat, 17 Aug 2024 09:27:20 +0800 Subject: [PATCH] Qualify lang targets names --- src/chsrc.c | 33 ++++++++++++------------ src/recipe/lang/{dart.c => Dart.c} | 0 src/recipe/lang/{go.c => Go.c} | 0 src/recipe/lang/{haskell.c => Haskell.c} | 0 src/recipe/lang/{java.c => Java.c} | 0 src/recipe/lang/{julia.c => Julia.c} | 0 src/recipe/lang/{lua.c => Lua.c} | 0 src/recipe/lang/{nodejs.c => Node.js.c} | 0 src/recipe/lang/{ocaml.c => OCaml.c} | 0 src/recipe/lang/{php.c => PHP.c} | 0 src/recipe/lang/{perl.c => Perl.c} | 0 src/recipe/lang/{python.c => Python.c} | 3 +-- src/recipe/lang/{r.c => R.c} | 0 src/recipe/lang/{ruby.c => Ruby.c} | 0 src/recipe/lang/{rust.c => Rust.c} | 0 15 files changed, 17 insertions(+), 19 deletions(-) rename src/recipe/lang/{dart.c => Dart.c} (100%) rename src/recipe/lang/{go.c => Go.c} (100%) rename src/recipe/lang/{haskell.c => Haskell.c} (100%) rename src/recipe/lang/{java.c => Java.c} (100%) rename src/recipe/lang/{julia.c => Julia.c} (100%) rename src/recipe/lang/{lua.c => Lua.c} (100%) rename src/recipe/lang/{nodejs.c => Node.js.c} (100%) rename src/recipe/lang/{ocaml.c => OCaml.c} (100%) rename src/recipe/lang/{php.c => PHP.c} (100%) rename src/recipe/lang/{perl.c => Perl.c} (100%) rename src/recipe/lang/{python.c => Python.c} (99%) rename src/recipe/lang/{r.c => R.c} (100%) rename src/recipe/lang/{ruby.c => Ruby.c} (100%) rename src/recipe/lang/{rust.c => Rust.c} (100%) diff --git a/src/chsrc.c b/src/chsrc.c index f707763..a4dc5c6 100644 --- a/src/chsrc.c +++ b/src/chsrc.c @@ -21,21 +21,20 @@ #include "chsrc.h" -#include "recipe/lang/ruby.c" -#include "recipe/lang/python.c" -#include "recipe/lang/nodejs.c" -#include "recipe/lang/perl.c" -#include "recipe/lang/php.c" -#include "recipe/lang/lua.c" -#include "recipe/lang/go.c" -#include "recipe/lang/java.c" -#include "recipe/lang/rust.c" - -#include "recipe/lang/dart.c" -#include "recipe/lang/haskell.c" -#include "recipe/lang/ocaml.c" -#include "recipe/lang/r.c" -#include "recipe/lang/julia.c" +#include "recipe/lang/Ruby.c" +#include "recipe/lang/Python.c" +#include "recipe/lang/Node.js.c" +#include "recipe/lang/Perl.c" +#include "recipe/lang/PHP.c" +#include "recipe/lang/Lua.c" +#include "recipe/lang/Go.c" +#include "recipe/lang/Java.c" +#include "recipe/lang/Rust.c" +#include "recipe/lang/Dart.c" +#include "recipe/lang/Haskell.c" +#include "recipe/lang/OCaml.c" +#include "recipe/lang/R.c" +#include "recipe/lang/Julia.c" #include "recipe/lang/NuGet.c" #include "recipe/lang/Clojure.c" @@ -216,7 +215,7 @@ cli_print_target_available_sources (SourceInfo sources[], size_t size) void cli_print_target_features (FeatInfo f, const char *input_target_name) { - printf (to_boldpurple("\nFeatures:\n\n")); + say (to_boldpurple("\nFeatures:\n")); char *get_msg = xy_2strjoin (" Get: 查看当前源状态 | chsrc get ", input_target_name); if (f.can_get) printf (" %s%s\n", to_boldgreen(YesMark), to_purple(get_msg)); @@ -255,7 +254,7 @@ cli_print_target_features (FeatInfo f, const char *input_target_name) if (f.note) { - printf ("\n%s%s\n", to_boldyellow ("备注: "), to_boldyellow (f.note)); + printf ("%s%s\n", to_boldyellow ("备注: "), to_boldyellow (f.note)); } } diff --git a/src/recipe/lang/dart.c b/src/recipe/lang/Dart.c similarity index 100% rename from src/recipe/lang/dart.c rename to src/recipe/lang/Dart.c diff --git a/src/recipe/lang/go.c b/src/recipe/lang/Go.c similarity index 100% rename from src/recipe/lang/go.c rename to src/recipe/lang/Go.c diff --git a/src/recipe/lang/haskell.c b/src/recipe/lang/Haskell.c similarity index 100% rename from src/recipe/lang/haskell.c rename to src/recipe/lang/Haskell.c diff --git a/src/recipe/lang/java.c b/src/recipe/lang/Java.c similarity index 100% rename from src/recipe/lang/java.c rename to src/recipe/lang/Java.c diff --git a/src/recipe/lang/julia.c b/src/recipe/lang/Julia.c similarity index 100% rename from src/recipe/lang/julia.c rename to src/recipe/lang/Julia.c diff --git a/src/recipe/lang/lua.c b/src/recipe/lang/Lua.c similarity index 100% rename from src/recipe/lang/lua.c rename to src/recipe/lang/Lua.c diff --git a/src/recipe/lang/nodejs.c b/src/recipe/lang/Node.js.c similarity index 100% rename from src/recipe/lang/nodejs.c rename to src/recipe/lang/Node.js.c diff --git a/src/recipe/lang/ocaml.c b/src/recipe/lang/OCaml.c similarity index 100% rename from src/recipe/lang/ocaml.c rename to src/recipe/lang/OCaml.c diff --git a/src/recipe/lang/php.c b/src/recipe/lang/PHP.c similarity index 100% rename from src/recipe/lang/php.c rename to src/recipe/lang/PHP.c diff --git a/src/recipe/lang/perl.c b/src/recipe/lang/Perl.c similarity index 100% rename from src/recipe/lang/perl.c rename to src/recipe/lang/Perl.c diff --git a/src/recipe/lang/python.c b/src/recipe/lang/Python.c similarity index 99% rename from src/recipe/lang/python.c rename to src/recipe/lang/Python.c index 64f115c..709faa9 100644 --- a/src/recipe/lang/python.c +++ b/src/recipe/lang/Python.c @@ -8,8 +8,7 @@ * ------------------------------------------------------------*/ /** - * 2024-05-24 更新 - * + * @time 2024-05-24 更新 * @note 不要添加Zju,浙大的pypi在校外访问会自动转向Tuna */ static SourceInfo diff --git a/src/recipe/lang/r.c b/src/recipe/lang/R.c similarity index 100% rename from src/recipe/lang/r.c rename to src/recipe/lang/R.c diff --git a/src/recipe/lang/ruby.c b/src/recipe/lang/Ruby.c similarity index 100% rename from src/recipe/lang/ruby.c rename to src/recipe/lang/Ruby.c diff --git a/src/recipe/lang/rust.c b/src/recipe/lang/Rust.c similarity index 100% rename from src/recipe/lang/rust.c rename to src/recipe/lang/Rust.c