Skip to content

Commit

Permalink
automation refactors
Browse files Browse the repository at this point in the history
  • Loading branch information
kamangir authored Jan 3, 2025
1 parent 7d623a8 commit 2f91f8c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gizai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

DESCRIPTION = f"{ICON} A Mathematical model for AI languages."

VERSION = "7.133.1"
VERSION = "7.135.1"

REPO_NAME = "giza"

Expand Down
2 changes: 1 addition & 1 deletion tex/access/syntax.tex
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
vanwatch ingest area=vancouver,~batch,count=5,gif . --count 12
\end{verbatim}
%
wherein, ``\keyword{vanwatch}'' is a callable, ``\keyword{ingest}'' is the task, ``\texttt{area=vancouver,~batch,count=5,gif}'' is an options, ``\texttt{.}'' is an object pointer, and ``\texttt{--count 12}'' are the arguments.
Here, ``\keyword{vanwatch}'' is the callable and ``\keyword{ingest}'' is the task, effectively an Enum, which is an \keyword{Options}. The command continues with ``\texttt{area=vancouver,~batch,count=5,gif}'', which is an \keyword{Options}, ``\texttt{.}'', which is an object pointer, and ``\texttt{--count 12}'', which are the arguments.
4 changes: 3 additions & 1 deletion tex/automation.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ \section{Automation}

\input{automation/prefixing}

% TODO: workflows
\input{automation/workflows}

% TODO: series of operations and options

% TODO: aliases

\input{automation/seed}
7 changes: 4 additions & 3 deletions tex/automation/seed.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
\marginpar{\keyword{@seed}}

\marginpar{Terraforming}
\emph{Terraforming} is the process of installing modules and adjusting the configuration of a shell or a machine for a specific purpose through running a series of commands. These commands are often long and unintuitive and contain secrets and other environment variables. Terraforming is generally persistent and has to be done once at the first use of a machine. Examples include \keyword{ssh} into a new machine, starting a machine on a service such as AWS SageMaker~\cite{sagemaker}, and running commands inside the Python Console in \emph{QGIS}~\cite{QGIS_python_console}. The \emph{seed expansion} generates the code required for terraforming a target and transfers it through one of the listed mechanisms,
\emph{Terraforming} is the process of installing modules and adjusting the configuration of a shell or a machine for a specific purpose through running a series of commands. These commands are often long and unintuitive and contain secrets and other environment variables. Terraforming is generally persistent and has to be done once at the first use of a machine. Examples include \keyword{ssh} into a new machine, starting a machine on a service such as AWS SageMaker~\cite{sagemaker}, and running commands inside the Python Console in \emph{QGIS}~\cite{QGIS_python_console}.

\marginpar{\keyword{@seed}}
The \emph{seed expansion} generates the code required for terraforming a target and transfers it through one of the listed mechanisms,
%
\begin{verbatim}
@seed [<target>] [clipboard|filename=<filename>|usb-key|scp|screen]
Expand Down
2 changes: 2 additions & 0 deletions tex/automation/workflows.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
\marginpar{\keyword{workflows}}
A \keyword{workflow} is a set of commands that depend on each other because they consume objects that are generated by other commands, among other reasons. We model a workflow as a Directed Acyclic Graph (DAG), where each node is a command. We use this abstraction to run workflows on AWS Batch~\cite{aws_batch} and Argo Workflows~\cite{argoflow}.

0 comments on commit 2f91f8c

Please sign in to comment.